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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Decimals not Calculating Correctly

Hi,

 

I'm trying calculate the total Allowance for each Div Name  in DAX but I'm getting the wrong figures back when I validate it against Excel's formula.

 

Budget Allowance Query.jpg

 

 

 

 

 

 

I have a DimBudgetAllowance table which lists the Div Name and 0.05 in the Bidget Allowance for each Div Name in a Table.

 

Then I have Dax the below measure Budget Allowance % is bringing back 0.5% instead of 5% in my table visual against each Div Name.

 

Budget Allowance % = CALCULATE(SUMX(DimBudgetAllowance,DimBudgetAllowance[Budget Allowance])/100+0)

 

 

This measure is then used in the next measure below

Annual Allowance for Increases = ([HC Total Salary 31 Mar] * [Budget Allowance %])

SomethIng isn't correct and I think it's the DAX measure above. I just want to multiply the 0.05 against the total salary for each Div Name to get the Allowance total but allowance for each Div Name is not always the same therefore I need it to calculate against the values in a table.

 

Any help with this appreciated!

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous 

 

Thanks for comming back to me. I managed to solve this yesterday and  it transpired that I needed to link the Budget Allowance table to another table which worked.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous 

 

Thanks for comming back to me. I managed to solve this yesterday and  it transpired that I needed to link the Budget Allowance table to another table which worked.

Anonymous
Not applicable

Hi @Anonymous ,

 

According to your description, here are my steps you can follow as a solution.

(1) This is my test data. 

vtangjiemsft_0-1692325330728.png

(2) We can create measures. 

Measure = MAX('Table'[Total Salary])*MAX('Table'[Allowance])
Measure 2 = SUMX(VALUES('Table'[Div Name]),[Measure])

(3) Then the result is as follows.

vtangjiemsft_1-1692325395709.png

 

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

 

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

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.

Top Solution Authors