exam questions

Exam DP-600 All Questions

View all questions & answers for the DP-600 exam

Exam DP-600 topic 1 question 17 discussion

Actual exam question from Microsoft's DP-600
Question #: 17
Topic #: 1
[All DP-600 Questions]

You have a Fabric tenant that contains a Microsoft Power BI report named Report1. Report1 includes a Python visual.
Data displayed by the visual is grouped automatically and duplicate rows are NOT displayed.
You need all rows to appear in the visual.
What should you do?

  • A. Reference the columns in the Python code by index.
  • B. Modify the Sort Column By property for all columns.
  • C. Add a unique field to each row.
  • D. Modify the Summarize By property for all columns.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
TashaP
Highly Voted 1 year, 1 month ago
A - often the Microsoft learn pages give you the exact answer: Under tips on the link I posted: In some cases, you might not want automatic grouping to occur, or you might want all rows to appear, including duplicates. In those cases, you can add an index field to your dataset that causes all rows to be considered unique and prevents grouping. https://learn.microsoft.com/en-us/power-bi/connect-data/desktop-python-visuals There are always multiple approaches in application but if you do the MS exam give the MS answer.
upvoted 64 times
SKN08
10 months ago
sorry but that (A) sounds incorrect. This is from the MS documentation: "In those cases, you can add an index field to your dataset that causes all rows to be considered unique and prevents grouping." and it means create new column that has a unique value for each and every row of the dataset. *C* is correct
upvoted 8 times
...
[Removed]
12 months ago
Adding an index field to your dataset means that you add a column/field that's unique to each row, meaning that the correct answer is C, not A. "Reference columns by index" means writing df.iloc[indexNo] instead of df["fieldName"], and that doesn't help anything.
upvoted 27 times
...
thuss
1 year, 1 month ago
It even says "The default aggregation is Don't summarize" already. Helpful link, definitely correct answer.
upvoted 3 times
...
...
Fermd
Highly Voted 1 year, 2 months ago
Selected Answer: D
The right answer is D: By setting the "Summarize By" property to "None" for all columns, you disable automatic aggregation and ensure all rows, including duplicates, are displayed in the Python visual.
upvoted 13 times
semauni
5 months, 3 weeks ago
The default aggregation of a Python script is 'Don't summarize', but that still means that duplicate rows only appear once. It just means that, for instance, a number column is not added up, but if you have two rows with the same numbers, they won't both appear.
upvoted 1 times
...
...
NRezgui
Most Recent 4 months ago
Selected Answer: C
Add a unique field to each row.
upvoted 1 times
...
MultiCloudIronMan
4 months, 2 weeks ago
Selected Answer: D
Modify the Summarize By property for all columns: By default, Power BI may summarize data in visuals, which can lead to grouping and aggregation of rows. Modifying the "Summarize By" property for all columns to "Do Not Summarize" will prevent this automatic grouping and ensure that all rows, including duplicates, are displayed in the visual.
upvoted 1 times
...
Sowwy1
5 months, 1 week ago
I think it's C. Add a unique field to each row.
upvoted 2 times
...
Rakesh16
5 months, 1 week ago
Selected Answer: C
Add a unique field to each row
upvoted 1 times
...
Naqib
5 months, 2 weeks ago
A Quoted from https://learn.microsoft.com/en-us/power-bi/connect-data/desktop-python-visuals: "In some cases, you might not want automatic grouping to occur, or you might want all rows to appear, including duplicates. In those cases, you can add an index field to your dataset that causes all rows to be considered unique and prevents grouping."
upvoted 4 times
...
semauni
5 months, 3 weeks ago
Selected Answer: C
"In some cases, you might not want automatic grouping to occur, or you might want all rows to appear, including duplicates. In those cases, you can add an index field to your dataset that causes all rows to be considered unique and prevents grouping." I was leaning towards A because of the word 'index', and usually if a specific term is mentioned, Microsoft wants to hear you use that term. But option A talks about REFERENCING the index in the CODE. The quote above is not about how you write your code (like cgroven mentioned, e.g. df["streetName"] vs. df[1] for example), but it is about how you should modify your data structure and visual to handle the results. If you read the above statement with this distinction in mind, then it clearly reads C.
upvoted 7 times
semauni
5 months, 3 weeks ago
And about D: deduplication is not achieved by disabling grouping. The behaviour of Power BI is, unintuitively to the new user, to hide duplicate rows. So say you have two rows with exactly the same contents, also containing the same numbers for instance, no summarization just causes your visual not to aggregate them (sum, average, etc.). It will instead just show ONE row with the original number. You can't tell if this represents multiple rows or not unless you add a unique field.
upvoted 1 times
...
...
el00721
6 months ago
D. By setting the "Summarize By" property to "None" for all columns, you disable automatic aggregation and ensure all rows, including duplicates, are displayed in the Python visual.
upvoted 1 times
...
nasra2
7 months ago
A: https://learn.microsoft.com/en-us/power-bi/connect-data/desktop-python-visuals In some cases, you might not want automatic grouping to occur, or you might want all rows to appear, including duplicates. In those cases, you can add an index field to your dataset that causes all rows to be considered unique and prevents grouping.
upvoted 2 times
...
Training_ND
7 months, 4 weeks ago
Selected Answer: A
MS ANSWER. https://learn.microsoft.com/en-us/power-bi/connect-data/desktop-python-visuals
upvoted 3 times
...
cafb698
8 months ago
Selected Answer: A
As much as C is tempting, let's focus on the wording. "Add a unique field to each row". You simply say, "Add another column for unique id" or something like that. In terms of Microsoft ways of asking, it's A.
upvoted 3 times
...
VishalTile
8 months, 2 weeks ago
Power BI tends to automatically summarize data in visuals, which can cause rows to be grouped and duplicates to be hidden. The "Summarize By" property controls how data is aggregated in a visual. By setting it to "Do Not Summarize," you prevent the automatic grouping of data, ensuring that all rows, including duplicates, are displayed. None of the other options directly address the issue of rows being grouped and duplicates being hidden in a Power BI visual. So, D is the right choice.
upvoted 1 times
...
fits08pistils
8 months, 2 weeks ago
It seems not everyone can read and understand documentation. The following Python script is execute EVERY TIME you use a Python visual: dataset = pandas.DataFrame(column1, column2, ...) dataset = dataset.drop_duplicates() So the ONLY way to prevent the duplicates from being dropped is to have a unique identifier. Ergo, option C is the only possible answer here.
upvoted 2 times
...
SilvanoRamalho
10 months, 1 week ago
Selected Answer: A
https://learn.microsoft.com/en-us/power-bi/connect-data/desktop-python-visuals --- Respostas "A"... da MS... Em alguns casos, talvez você não queira que o agrupamento automático ocorra ou queira que todas as linhas apareçam, inclusive as duplicadas. Nesses casos, você pode adicionar um campo de índice ao seu conjunto de dados que faz com que todas as linhas sejam consideradas exclusivas e evita o agrupamento.
upvoted 2 times
...
ziggy1117
10 months, 1 week ago
Selected Answer: C
ANSWER IS C: In some cases, you might not want automatic grouping to occur, or you might want all rows to appear, including duplicates. In those cases, you can add an index field to your dataset that causes all rows to be considered unique and prevents grouping. This means you need to add an index field column in which case each row will have a unique index value per row
upvoted 2 times
...
SilvanoRamalho
10 months, 1 week ago
Selected Answer: C
C- ADIONAR UMA COLUA INDICE
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago