Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Anonymous
Not applicable

Best way to use % in table?

Hi all,
 
Currently have the issue of my measure tryign to sum my % instead of providing the % figure for all the data beaneth it. Has anyone got a clue how to fix this? I'd expect to see arouund 50% for the below instead of minus 109%. *Code in spoiler below photo*
image.png
Spoiler
Idle % = ((DISTINCTCOUNT('Agent Data'[Agent Name]) * 3600)-((sum('Agent Data'[On Calls Dur])+sum('Agent Data'[Unavailable Dur]))))/(DISTINCTCOUNT('Agent Data'[Agent Name]) * 3600)
 
Kind regards,
 
Jordan 
1 ACCEPTED SOLUTION
Anonymous
Not applicable

In the end, we decided to remove the % all together from the row totals using HASONEFILTER. I don't believe this was the best method but it was A method. 

 

Idle = IF(HASONEFILTER('Interval'[Time]), ((DISTINCTCOUNT('Agent Data'[Agent Name]) * 3600)-((sum('Agent Data'[On Calls Dur])+sum('Agent Data'[Unavailable Dur]))))/(DISTINCTCOUNT('Agent Data'[Agent Name]) * 3600)) 

 

image.png

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

In the end, we decided to remove the % all together from the row totals using HASONEFILTER. I don't believe this was the best method but it was A method. 

 

Idle = IF(HASONEFILTER('Interval'[Time]), ((DISTINCTCOUNT('Agent Data'[Agent Name]) * 3600)-((sum('Agent Data'[On Calls Dur])+sum('Agent Data'[Unavailable Dur]))))/(DISTINCTCOUNT('Agent Data'[Agent Name]) * 3600)) 

 

image.png

v-diye-msft
Community Support
Community Support

Hi @Anonymous 

 

If the above posts help, please kindly mark it as a answer to help others find it more quickly. thanks!

If not, please kindly elaborate more.

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
amitchandak
Super User
Super User

@Anonymous , In case the issue is not resolved. Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Greg_Deckler
Community Champion
Community Champion

@Anonymous This looks like a measure totals problem. Very common. See my post about it here: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376

Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
amitchandak
Super User
Super User

@Anonymous , Try like

 

Idle % = divide(((DISTINCTCOUNT('Agent Data'[Agent Name]) * 3600)-((sum('Agent Data'[On Calls Dur])+sum('Agent Data'[Unavailable Dur])))),
(DISTINCTCOUNT('Agent Data'[Agent Name]) * 3600))

 

Also refer wrong grand total
https://www.youtube.com/watch?v=ufHOOLdi_jk
https://www.youtube.com/watch?v=Rii_6qkLNh8
https://www.youtube.com/watch?v=Ka7Ds4EAjNQ

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
jthomson
Solution Sage
Solution Sage

Seems an obvious case of your formula being written specifically for a row by row basis which doesn't translate to a total context. Without seeing exactly how your data is formatted, I'd just write each of on calls/idle/unavailable to sum up the instances of each and then divide by the grand total, shouldn't be any need to multiply by 3600 or anything like that

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.