The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 |
---|---|
11 | |
9 | |
6 | |
6 | |
5 |
User | Count |
---|---|
22 | |
14 | |
14 | |
9 | |
7 |