Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I have the following table (simplified)
I present this in a table and add a visual filter to hide rows where "Non billable hours" is 0
The table sums it up nice where the total of "Estimated non billable amount" is correct
I then add a Card only showing the total "Estimated non billable amount" it then shows another amount. It is not allowed to filter this visual the same way as the table
Since not all customers have Non billable hours the measure calculates different average billable rates in the table and in the Card. How can I fix this?
Thanks!
Solved! Go to Solution.
Hi @FredrikR_SO ,
I created sample data based on your description.
Visual filter
visual filter = IF(MAX('Table'[Non billable hours])<>0,1)
Average billable rate = SUM('Table'[Billable amount])/SUM('Table'[Billable hours])
Estimated non billable amount = SUM('Table'[Non billable hours])*[Average billable rate]
It should be 33.95 instead of 33.62.
You can get the correct result by creating a new measure.
Total = SUMX('Table',[Estimated non billable amount])
You can check more details from the attachment.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @FredrikR_SO ,
I created sample data based on your description.
Visual filter
visual filter = IF(MAX('Table'[Non billable hours])<>0,1)
Average billable rate = SUM('Table'[Billable amount])/SUM('Table'[Billable hours])
Estimated non billable amount = SUM('Table'[Non billable hours])*[Average billable rate]
It should be 33.95 instead of 33.62.
You can get the correct result by creating a new measure.
Total = SUMX('Table',[Estimated non billable amount])
You can check more details from the attachment.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
just a quick thought whilst I'm on my phone but could you try something like this:
Estimated non billable amount = calculate(SUM(Non billable hours)*Average billable rate, filter(table,table[Non billable hours]>0))
Thanks, I actually tried that but for some reason Estimated non billable amount = NaN in that case
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
100 | |
84 | |
76 | |
65 |
User | Count |
---|---|
120 | |
111 | |
94 | |
83 | |
77 |