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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
gauravnarchal
Post Prodigy
Post Prodigy

Issue with Percentage Total

Dear All

 

I am using the below measure to get the available limit in percentage. I am getting the desired result but the total percentage is not reflected correctly in the result. It always shows 0%.

 

Measure

 

AvailableLimit = DIVIDE([BalanceRemaining],[CreditLimit],0)

 

gauravnarchal_0-1638980278841.png

 

gauravnarchal_1-1638980322029.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @gauravnarchal ,

You can create a another new measure as below to get the correct total percentage, then put this new measure onto the table visual to replace the measure [Available Limit]. Please find the attachment for the details.

Measure = SUMX(VALUES('ClientMaster'[ProfileNameGroup]),[AvailableLimit])

yingyinr_0-1639446469133.png

Best Regards

View solution in original post

7 REPLIES 7
AlexanderPrime
Solution Supplier
Solution Supplier

That 0 on the end is the "alternative result if error when dividing by 0" result. Which would return 0%, this indicates there may be a problem with it dividing Balance Remaining and Credit Limit, are they both set as whole/decimal number? What happens if you remove the ,0? 


Please note - I am not affiliated with Microsoft, I'm just an end user like yourself.
Just a regular guy doin' Data Science.

If my post has helped you, please don't forget to thumbs up or click "Accept as solution" if it solved your problem!

@AlexanderPrime  - If I remove "0" it does not show any value in the total.

 

Also, Balance Remaining and Credit Limit both are set as decimal numbers.

 

gauravnarchal_0-1638981267776.png

 

Does doing it like in the below image work? (May need forum admins to approve attached image if not showing, if it doesn't load. try using: 

AvailableLimit = DIVIDE(SUM('Table'[BalanceRemaining]),(SUM('Table'[CreditLimit])))    Replacing 'Table' with the respective table name.)



Is this going into a matrix? Or a visual for each indiviual record. Need a bit more context of what you are trying to do with it if the below doesn't work. 

BalanceLimit.png


Please note - I am not affiliated with Microsoft, I'm just an end user like yourself.
Just a regular guy doin' Data Science.

If my post has helped you, please don't forget to thumbs up or click "Accept as solution" if it solved your problem!

@AlexanderPrime   - Now I am getting the value but the percentage total is showing incorrect.

 

gauravnarchal_0-1639299581839.png

 

 

Anonymous
Not applicable

Hi @gauravnarchal ,

You can create another new measure as follows and apply it to your visual to replace your existing measure [Available Limit].  

Measure = SUMX ( VALUES ( 'Tablename'[categorycolumnonvisual] ), [Available Limit] )

Besides that, you can refer the methods in the following videos to resolve your problem:

Why Your Total Is Incorrect In Power BI - The Key DAX Concept To Understand

Dax for Power BI: Fixing Incorrect Measure Totals

If the above ones can't help you, please provide some raw data from your model tables with Text format, visual setting&display(Fields pane) with screenshots and your expected result. Thank you.

yingyinr_0-1639390983979.png

Best Regards

@Anonymous  - Please find attached the PBIX for your reference. Thank you for looking into this.

 

PBIX  - Click Here

Anonymous
Not applicable

Hi @gauravnarchal ,

You can create a another new measure as below to get the correct total percentage, then put this new measure onto the table visual to replace the measure [Available Limit]. Please find the attachment for the details.

Measure = SUMX(VALUES('ClientMaster'[ProfileNameGroup]),[AvailableLimit])

yingyinr_0-1639446469133.png

Best Regards

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.