cancel
Showing results for
Did you mean:

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.

Helper II

## Percentage Calculation by dividing 2 values and grouping Age bucket

Hi All / @johnmelbourne 🙂

Again need some quick answer from you guys for below scenario :

Y axis : overdue amount

X axis : Age bucket

Having Card as Total Overdue amount as per attached image .

Here i need to find percentage value for each bars (example 65.7M/133.35M , answer will be : 0.492 for 1st bar , like same , by age bucket each bar will be dividing by total overdue amount )

This chart only for NOV month and i have a slicer to change month wise data , so total overdue amout will change as per Month . So cannot hard code the value .

TIA

1 ACCEPTED SOLUTION
Helper V

I think your issues is the visual is doing calculations like
65.7M / 65.7M for 1-30 days
24.4M / 24.4M for 31-60 days etc
so the calculation is 100% for each category.
That is, it is not considering ALL the categories in the denominator.

So you likely need an ALL somewhere in your measure, like ALL(Age Buckets). However, you could try and use the interface to work it out if that suits .... by enabling the following on your measure

3 REPLIES 3
Helper V
Helper II

@johnmelbourne Thanks for your help again .

here i have followed the same and by table i can see the expected % and looks good but the same when i applied in line y axis chart it will shown like this :

this looks abnormal and not a correct one , it showing consolidated % value ..

How to get the correct exact % value for each bars ?

Helper V

I think your issues is the visual is doing calculations like
65.7M / 65.7M for 1-30 days
24.4M / 24.4M for 31-60 days etc
so the calculation is 100% for each category.
That is, it is not considering ALL the categories in the denominator.

So you likely need an ALL somewhere in your measure, like ALL(Age Buckets). However, you could try and use the interface to work it out if that suits .... by enabling the following on your measure

Announcements

#### Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

#### Power BI Monthly Update - April 2024

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

#### Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors