DAX Performance Optimization with NOT and COUNTROWS
Short answer
B Replacing the DAX line with a logically equivalent NOT and COUNTROWS expression does not reduce execution time.
Question

Key Takeaways
Replacing a DAX filter with a logically equivalent expression using NOT and COUNTROWS does not reduce execution time because the underlying calculation is still evaluated.
Replacing a DAX condition with a logically equivalent expression using NOT and COUNTROWS does not improve query performance. This page confirms that logically equivalent DAX formulations yield the same execution time.
Common mistake: Choosing Yes because the DAX syntax looks different, assuming it triggers a different query plan without verifying logical equivalence.
Expert Analysis
Why the Answer Is Correct
The correct answer is No because the proposed solution replaces the original DAX expression with one that is logically equivalent. Since both expressions must evaluate the sameCALCULATE and COUNTROWS operations against the 'Order Item' table, the VertiPaq engine processes the same amount of data and performs the same calculations, resulting in identical execution times.Why the Other Options Are Wrong
Choosing Yes would incorrectly imply that simply rearranging a DAX condition into a NOT statement inherently optimizes the query. Performance optimization requires reducing the computational workload—such as filtering earlier or using a more efficient function—not just altering the logical syntax without reducing the work.Community Comment Notes
Community members agree that the change is logically equivalent and thus offers no performance benefit, as Pegooli noted: "This change is logically equivalent to the original condition". Martin_Nbg also pointed out that "Performance would be about the same", reinforcing that syntax shifts without computational reduction do not optimize DAX.Official Reference
https://learn.microsoft.com/en-us/dax/best-practices-dax
This link opens the official vendor documentation in a new tab.
Exam Strategy
When evaluating DAX optimization solutions, check if the proposed change actually reduces the data scanned or the complexity of the calculation. Logically equivalent expressions will not improve performance.
Community Votes
100% of anonymous learners picked answer B. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 3 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors, not of islever. The comments shown first are the most substantive of the thread — ranked by depth, community endorsement and relevance; expand the list below to read the rest.
From public community threads 3
-
Pegooli 👍 6 Answered BThis change is logically equivalent to the original condition and does not optimize the performance.
-
Martin_Nbg 👍 3No is correct. Performance would be about the same.
-
nappi1 👍 1 Answered BThe performance must be the same
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All DP-600 Questions
Access 115 questions with complete answers and detailed explanations.
View Full DP-600 Practice Test →