Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Tables
Say I have 2 tables, one with monthly totals by customer and one that has the working days per month (see below).
Goal
Setup a matrix table that shows the average hours per customer per day by month and YTD.
Issue
I can't get the grand total of the rows to calculate correctly by customer and in total.
Any ideas on how to get this to work in a matrix in PBI? Just looking for concept of how to apporach this issue (if it is possible).
Thanks
Solved! Go to Solution.
Hi @connork
Please give this calculated measure a crack and let me know how you go
Measure = IF( ISFILTERED('TABLE2 - WORK DAYS'[Month]), DIVIDE( SUM('TABLE1-DATA'[Hours]), MAX('TABLE2 - WORK DAYS'[Working Days]) ), ------ Grand Total Calc Here ------ DIVIDE( CALCULATE(SUM('TABLE1-DATA'[Hours])), CALCULATE(SUM('TABLE2 - WORK DAYS'[Working Days]) ) ) )
Here is the result I got
Hi @connork
Please give this calculated measure a crack and let me know how you go
Measure = IF( ISFILTERED('TABLE2 - WORK DAYS'[Month]), DIVIDE( SUM('TABLE1-DATA'[Hours]), MAX('TABLE2 - WORK DAYS'[Working Days]) ), ------ Grand Total Calc Here ------ DIVIDE( CALCULATE(SUM('TABLE1-DATA'[Hours])), CALCULATE(SUM('TABLE2 - WORK DAYS'[Working Days]) ) ) )
Here is the result I got
User | Count |
---|---|
121 | |
69 | |
66 | |
56 | |
52 |
User | Count |
---|---|
182 | |
85 | |
67 | |
61 | |
53 |