Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
All,
I'm having an issue summing. Here is the calc I'm using for Biz 2.
IF(SUM(Hours[Total Work Hours]) <=0, BLANK(), SUM('Calendar'[Business Hours]))
Any ideas? Disregard Client Rate 2.0
Hi there,
Happy to help. So the issue is that with the IF statement DAX is going row by row in the Pivot Table and checking to see if Total Working Houres is less than or equal to 0. In the Total Row this value is not 0, so it's summing the entire value of Business Hours. Instead I'd recommend using the CALCULATE function.
= CALCULATE ( SUM ( 'Calendar'[Business Hours] ), FILTER ( Hours, SUM ( Hours[Total Work Hours] ) <= 0 ) )
This one will SUM only those values that were above this, at the grand total level. Compared to the IF statement. Let me know if this works for you.
Thanks! This definitely worked in the table. So props there. One more question... When I put in the grand total column, or a card, as seen below in the picture, the number isn't correct. The correct number is 24.01. Any ideas?
User | Count |
---|---|
131 | |
108 | |
101 | |
67 | |
64 |
User | Count |
---|---|
137 | |
115 | |
102 | |
71 | |
61 |