Bird
0
0

Given this DAX expression:

medium📝 Formula Result Q4 of 15
Power BI - Power Query Editor
Given this DAX expression:
SortedTable = SORTBY('Sales', 'Sales'[Amount], DESC)

What will be the order of rows in SortedTable?
ARows sorted by Amount randomly
BRows sorted by Amount in ascending order (smallest to largest)
CRows sorted by Amount in descending order (largest to smallest)
DRows remain in original order
Step-by-Step Solution
Solution:
  1. Step 1: Understand the SORTBY function parameters

    SORTBY sorts the table by the specified column and order. Here, 'Amount' column is sorted DESC (descending).
  2. Step 2: Determine the sorting result

    Descending order means largest values first, so rows will be ordered from largest to smallest Amount.
  3. Final Answer:

    Rows sorted by Amount in descending order (largest to smallest) -> Option C
  4. Quick Check:

    SORTBY with DESC = Descending order [OK]
Quick Trick: DESC means sort from largest to smallest [OK]
Common Mistakes:
  • Confusing DESC with ASC
  • Assuming no change in order
  • Thinking SORTBY randomizes rows

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Power BI Quizzes