Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello,
I want to ask you for help on RANX measurement with filters.
By inserting the measure, the ranking starts from 2 and in some cases jumps one rank.
The formula used is this
Rank Incidenza Gara Comparto 1 = RANKX ( FILTER (ALL( 'dwh DimStore'), 'dwh DimStore'[Region] IN {"X","Y","Z"})
, calculate(sum('Venduto Totale'[Gara_Tot_quantita])/sum('Venduto Totale'[Tot_Scontrini])))
and the result is this
Rank Incidenza Gara Comparto 1 | Store | Incidenza Pezzi_Presenze |
2 | A | 61,77% |
3 | B | 56,46% |
4 | C | 54,06% |
5 | D | 51,29% |
6 | E | 47,98% |
Thx all
Solved! Go to Solution.
It seems like there are filters being applied to the table. Use Performance Analyzer to get the DAX code generated for the table and have a look at it in DAX Studio. You could then potentially add those filters into the RANKX so that only those stores are included.
It seems like there are filters being applied to the table. Use Performance Analyzer to get the DAX code generated for the table and have a look at it in DAX Studio. You could then potentially add those filters into the RANKX so that only those stores are included.
Yes, there are other filters in the table. I followed your advice and added the missing filters. Now everything works correctly.
Thanks 1000 !!!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
43 | |
23 | |
21 | |
15 | |
15 |
User | Count |
---|---|
46 | |
31 | |
30 | |
18 | |
18 |