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
Whatever2
Helper I
Helper I

Dax percentage of column

hi everyone 

 

I'm trying to calculate the percentage for the total of a column but i can't seem to be able to have a single mesure with the total of that column to divide each row with i keep ending up with the total of the row and not of the column 

Mesure = SUM('Prenium n-2 BI'[n-1])

this give me the total if i put it on visual on it's own but i soon as try to put it with the rest of my data it get segregate and it's behaving the same way when i try to divide it by the number in my row  with the following formula 

sum N-1 = DIVIDE(SUMX('Prenium n-2 BI',[n-1]),[Mesure])*100

thanks in advance 

1 ACCEPTED SOLUTION
Yggdrasill
Responsive Resident
Responsive Resident

Total = SUM(YourNumbers)

%ofTotal = 
    DIVIDE ( [Total] ; CALCULATE ( [TOTAL] ; ALL (YourTable) ) )

Try this

View solution in original post

3 REPLIES 3
Yggdrasill
Responsive Resident
Responsive Resident

Total = SUM(YourNumbers)

%ofTotal = 
    DIVIDE ( [Total] ; CALCULATE ( [TOTAL] ; ALL (YourTable) ) )

Try this

thank you so much i've been struggling for like 2 hour on this 

Most welcome, we've all been there - keep going

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.