Forum Discussion
Incorrect 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 percentage total is not reflected correctly in the result. It always shows 0%.
Measure
AvailableLimit = DIVIDE([BalanceRemaining],[CreditLimit],0)
gauravnarchal instead of SELECTEDVALUE use SUM
CreditLimit = SUM(ClientDetails[Credit Limit])✨ Follow us on LinkedIn
Learn about conditional formatting at Microsoft Reactor
My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
9 Replies
- parry2kSuper User
gauravnarchal what is the expression in DAX measures used in the Divide function?
- gauravnarchalPost Prodigy
- parry2kSuper User
gauravnarchal as always it is easier if you provide a sample pbix file. I can see what is going on but looking at pbix, it is hard to provide a clear solution. Also in pbix explain your expected output.
✨ Follow us on LinkedIn
Learn about conditional formatting at Microsoft Reactor
My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
- gauravnarchalPost Prodigy
parry2k Please find attached the PBIX for your reference and thank you for looking into this.
PBIX - Click Here
- parry2kSuper User
gauravnarchal ok, what % you want at the total line?
- gauravnarchalPost Prodigy
parry2k - I want to show the total balance remaining divided by the total Available Limit for each customer and on the total as well. (Percentage)
Also, when I use the slicer to filter any customer group, it should change the result (Total) percentage accordingly.
Thanks
- parry2kSuper User
- gauravnarchalPost Prodigy
parry2k - yes this is what I want.
- parry2kSuper User
gauravnarchal instead of SELECTEDVALUE use SUM
CreditLimit = SUM(ClientDetails[Credit Limit])✨ Follow us on LinkedIn
Learn about conditional formatting at Microsoft Reactor
My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡