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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
grasa
Helper I
Helper I

Percentage calculation

Dear all,

 

I hope my question is not too silly but unfortunately I haven´t found any solution for it, so far.

I have a column which shows a value "Sum A" which is formatted as decimal number. I need a calculation of 2% of this value. 

Therefore I added a new column (called "Spalte") into my table saying just "0,02" and added a measure (calles "Sum B") which multiplies "Sum A" by the "0,02" column. That works if I show the single projects that are related to the quantities, unfortunately the total sum and any other aggregation is not working.

 

I hope it is clear what I mean, does anyone have an idea how I can solve this? Many thanks in advance!

 

grasa_2-1725441322521.png

 

1 ACCEPTED SOLUTION
BeaBF
Super User
Super User

@grasa Hi! The issue arises because when you multiply the values in "Sum A" by a fixed percentage (like 0.02) stored in another column, the measure works correctly on a row-by-row basis. However, when aggregating (like calculating the total sum), it does not behave as expected because the calculation is applied after aggregation rather than before.

 

So, remove the column "Spalte" and add a new measure:
Sum B = SUM('YourTable'[Sum A]) * 0.02

Use this measure in your table.

 

If it's ok, please accept the answer as solution!

BBF

View solution in original post

2 REPLIES 2
grasa
Helper I
Helper I

@BeaBF Great, thank you very much for that fast reply 😀.

I already tried that before but I wrote 0,02 instead of 0.02 😅.

Now it is working.

BeaBF
Super User
Super User

@grasa Hi! The issue arises because when you multiply the values in "Sum A" by a fixed percentage (like 0.02) stored in another column, the measure works correctly on a row-by-row basis. However, when aggregating (like calculating the total sum), it does not behave as expected because the calculation is applied after aggregation rather than before.

 

So, remove the column "Spalte" and add a new measure:
Sum B = SUM('YourTable'[Sum A]) * 0.02

Use this measure in your table.

 

If it's ok, please accept the answer as solution!

BBF

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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