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 September 15. Request your voucher.
Hi,
I have a measure that works out the maximum percentage (percentage of sales) for the day between all stores. It then looks at the current stores percentage and compares it to the maximum percentage and indicates the shortfall (maximum for the day - current store percentage) = shortfall for store.. We then use this shortfall times the number of items to get a value.
When the table is at bottom drilldown (by day) then each row shows the macimum for the day and the shortfall for each store. When however we drill up to the month (or show totals) it seems to take the maximum for all days in the month and do the sum, instead of adding the values from each row to give you an overall value for the month.
We did use a calculated column before and it added each row correctly but with this formula we have to work out a measure (because of filtering, roles etc.).
Does anyone have any recomendations?
Solved! Go to Solution.
Hi @duggy ,
To ensure the measure working at both parent-level and child-level in Matrix, we need to calculate the measure accordingly depending on the what level the current filter context is at. We can use the DAX ISINSCOPE function to evaluate current level. Please refer to below links to get the DAX logic.
DAX – Ranking with Hierarchy Drill-Down Problem
Clever hierarchy handing in DAX
Best regards,
Yuliana Gu
Hi @duggy ,
To ensure the measure working at both parent-level and child-level in Matrix, we need to calculate the measure accordingly depending on the what level the current filter context is at. We can use the DAX ISINSCOPE function to evaluate current level. Please refer to below links to get the DAX logic.
DAX – Ranking with Hierarchy Drill-Down Problem
Clever hierarchy handing in DAX
Best regards,
Yuliana Gu
User | Count |
---|---|
65 | |
61 | |
60 | |
53 | |
30 |
User | Count |
---|---|
181 | |
88 | |
71 | |
48 | |
46 |