The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
In DAX Studio, this works:
EVALUATE
ADDCOLUMNS(
VALUES('Date'[MMMYYYY])
,"Tested Measure",[Total Sales]
)
But is doesn't sort correctly even though, in the model, Date'[MMMYYYY] is sorted by 'Date'[MMMYYYY sort]
This errors:
EVALUATE
ADDCOLUMNS(
VALUES('Date'[MMMYYYY])
,"Tested Measure",[Total Sales]
)
ORDER BY
'Date'[MMMYYYY sort]
Error = 'A single value for the column 'Date'[MMMYYYY sort] cannot be determined....'
The only difference is the ORDER BY. I assume it errors because the sort column is not in the result set.
Straightforward in SQL but surely there has to be a way round this in DAX?
Please explain.
User | Count |
---|---|
16 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
25 | |
13 | |
12 | |
8 | |
8 |