In the DAX TOPN expression used in the visual, what does TOPN(1001, __DS0Core, [Sales], 0, 'Company'[Manufacturer], 1) do?

Prepare for the DP-600 Fabric Analytics Engineer Exam. Test your knowledge with multiple choice questions and detailed explanations. Gear up for your success now!

Multiple Choice

In the DAX TOPN expression used in the visual, what does TOPN(1001, __DS0Core, [Sales], 0, 'Company'[Manufacturer], 1) do?

Explanation:
TOPN picks a subset of rows from a table by ordering them with one or more sort keys and returning the first N rows. In this expression, the table is __DS0Core. The primary sort key is Sales, and the 0 indicates a descending order, so rows with larger Sales come first. If two rows tie on Sales, a secondary sort is applied using the Manufacturer column from the Company table, with 1 indicating ascending order. So the result is the top 1001 rows by Sales, and ties are resolved by ordering manufacturers alphabetically. It’s not a random sample or a simple filter to 1001 products; it’s a deterministic top-N selection based on the specified sort criteria.

TOPN picks a subset of rows from a table by ordering them with one or more sort keys and returning the first N rows. In this expression, the table is __DS0Core. The primary sort key is Sales, and the 0 indicates a descending order, so rows with larger Sales come first. If two rows tie on Sales, a secondary sort is applied using the Manufacturer column from the Company table, with 1 indicating ascending order. So the result is the top 1001 rows by Sales, and ties are resolved by ordering manufacturers alphabetically. It’s not a random sample or a simple filter to 1001 products; it’s a deterministic top-N selection based on the specified sort criteria.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy