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 this DAX query, the returned values for Rank by Sales column look strange. If the filter context from Sales table is commented, the result is correct. The same issue was found with SUMMARIZE too. As the moment, I can work around by nesting the column name and columns expression in ADDCOLUMNS expression, but I wanted to understand what's going wrong internally with SUMMARIZE or SUMMARIZECOLUMNS in this case? Could anyone help? Thanks!
EVALUATE SUMMARIZECOLUMNS ( 'Product'[Brand], Sales, "Total Sales", [Total Sales], "Rank by Sales", RANKX ( ALL ( 'Product'[Brand] ), [Total Sales] ) )
User | Count |
---|---|
13 | |
8 | |
6 | |
6 | |
5 |
User | Count |
---|---|
24 | |
14 | |
13 | |
8 | |
8 |