Skip to main content
cancel
Showing results for 
Search instead 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.

Reply
mmanonm
New Member

Cumulative percentage problem

Hi all, 

 

I need your help please.

I have a big table with several lines with percentages. For one topic, I want to get the global percentage but POWER BI gives me the cumulative percentage (I think), even when I change the data format. 

 

For example:

 

SUPPLIER 1

Booked quantity = 966 UNT

Consummed quantity = 1402 UNT

Difference between both criteria = 436 UNT 

So the difference in percentage is 45% 

 

But when I put this data in POWER BI, the total percentage I got is 160% even if I don't ask for SUM.

 

Do you know how can I do to correct this? 

 

Thanks a lot for your help.

 

Manon

1 ACCEPTED SOLUTION
v-haibl-msft
Employee
Employee

@mmanonm

 

If Booked quantity and Consummed quantity are two columns in one table, you can create a measure like the formula below, and put it in the Card visual to show the result.

 

Measure = 
ABS (
    DIVIDE (
        SUM ( 'SUPPLIER 1'[Booked quantity] ) - SUM ( 'SUPPLIER 1'[Consummed quantity] ),
        SUM ( 'SUPPLIER 1'[Booked quantity] )
    )
)

 

Cumulative percentage problem_1.jpg

 

Best Regards,
Herbert

View solution in original post

3 REPLIES 3
v-haibl-msft
Employee
Employee

@mmanonm

 

If Booked quantity and Consummed quantity are two columns in one table, you can create a measure like the formula below, and put it in the Card visual to show the result.

 

Measure = 
ABS (
    DIVIDE (
        SUM ( 'SUPPLIER 1'[Booked quantity] ) - SUM ( 'SUPPLIER 1'[Consummed quantity] ),
        SUM ( 'SUPPLIER 1'[Booked quantity] )
    )
)

 

Cumulative percentage problem_1.jpg

 

Best Regards,
Herbert

Hi Herbert,

 

I changed a bit the formula but it works !

Thanks a lot for your help ! 🙂 

 

Best regards, 

 

Manon

@mmanonm

 

Please let me know if it works for you.

 

Best Regards,
Herbert

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

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

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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