Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello, guys! I'm creating a measure where I summaryze 3 kpi's from the same data base differently, for 2 of them is quite simple, but when it comes to the last one, I'm not finding a good way to summarize it. The WD are summarized as sum when they are from the same month and different locations, but when I summaryze the months, should do an average.
I tried to create a virtual table summarizing as a sum from the original DB and summarize again as an average from the virtual table, but it doesn't work and I feel like this is happening because my slicers are filtering the original DB.
Do you have a better way to do it or can you guide me what I'm doing wrong here?
Code:
Solved! Go to Solution.
HI @Rui_Reis,
For the multiple level aggregation, you should consider using SUMMARIZE function and iterator functions(e.g. SUMX, AVERAGEX...) to apply different level aggregations.
Measure Totals, The Final Word
Also, you can use ISINSCOPE or ISFILTERED functions to check the different level of row context level and apply different type of calculate expressions.
Use IsInScope to get the right hierarchy level in DAX - Kasper On BI
Regards,
Xiaoxin Sheng
HI @Rui_Reis,
For the multiple level aggregation, you should consider using SUMMARIZE function and iterator functions(e.g. SUMX, AVERAGEX...) to apply different level aggregations.
Measure Totals, The Final Word
Also, you can use ISINSCOPE or ISFILTERED functions to check the different level of row context level and apply different type of calculate expressions.
Use IsInScope to get the right hierarchy level in DAX - Kasper On BI
Regards,
Xiaoxin Sheng
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
15 | |
11 | |
8 | |
8 | |
8 |
User | Count |
---|---|
22 | |
13 | |
11 | |
10 | |
10 |