Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now
Hi
I have a matrix visual in power bi that uses the following 3 DAX functions.
Daily hours (mins)= SUM('Daily Contracted Minutes'[Daily Minutes Contracted]) // measure fed by Parameter
Total Activity Time (mins) = SUM('Operative Activity'[Total Time])
Time not utilised (mins) = IF([Total Activity Time] > [Daily hours] , BLANK(),
IF([Total Activity Time] = 0, BLANK(),
[Daily hours] - [Total Activity Time]))
Here is an example of the Matrix. However the totals for Time not utilised (mins) is blank. However I need to keep the existing IF statement in the Time not utilised (mins) measure .
| 10 October 2022 | ||||
| Team | Operative Name | Daily hours | Total Activity Time | Time not utilised (mins) |
| Elec | Engineer A | 510 | 411.5 | 98.5 |
| Engineer B | 510 | 472.4 | 37.6 | |
| Engineer C | 510 | 522.8 | ||
| Engineer D | 510 | 471.0 | 39.0 | |
| Engineer E | 510 | 344.5 | 165.5 | |
| Engineer F | 510 | 470.8 | 39.2 | |
| Engineer G | 510 | 324.7 | 185.4 | |
| Total | 510 | 3017.6 | ? |
thank you
Richard
Solved! Go to Solution.
HI @cottrera,
This seems like a common issue measure expressions calculate on the total level which includes multiple levels of aggregations.
For this scenario, you can take a look at the following link to use summarize function aggregate on the detail level records, and use the iterator function to apply the second level aggregated to summary previous results:
Measure Totals, The Final Word
Regards,
Xiaoxin Sheng
Thank you Xiaoxin Sheng
For the link to a great article. This solved my Matrix issue. Better make sure I vote to Improve Matrix totals 😃
HI @cottrera,
This seems like a common issue measure expressions calculate on the total level which includes multiple levels of aggregations.
For this scenario, you can take a look at the following link to use summarize function aggregate on the detail level records, and use the iterator function to apply the second level aggregated to summary previous results:
Measure Totals, The Final Word
Regards,
Xiaoxin Sheng
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 52 | |
| 38 | |
| 37 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 67 | |
| 66 | |
| 34 | |
| 32 | |
| 29 |