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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Whatever2
Helper I
Helper I

Dax syntaxe help

Hi

 

I have to calculate the % per row of the total , and i first manage to do it with this formula :

%total 2016 = SUM('prenium n-2 ratio'[2016])/CALCULATE(SUM('prenium n-2 ratio'[2016]),ALL('prenium n-2 ratio'[broker_name]))*100

wich worked fine and had correct number , then i had to change the column name for some reason so i had the next formula as a result :

 %total n-2 = SUM('prenium n-2 ratio'[n-2])/CALCULATE(SUM('prenium n-2 ratio'[n-2]),ALL('prenium n-2 ratio'[broker_name]))*100

 

and now the figures are wrong (100 for every row ) and i can't understand why (the colulmn name in the function does match with my table ) , I would like to understand why .

 

 

in red :calculated with dax , in green : same formula but on excelin red :calculated with dax , in green : same formula but on excel

as you can see the totals are the same but the figures are not

 

The main question here is why do i get different result with the same formula ?

 

Thanks .

 

1 REPLY 1
Greg_Deckler
Community Champion
Community Champion

Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors