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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
RajK2
Helper V
Helper V

DAX Formula

 

I have created PBI summarized table and I need another column DAX Formula

column grant total divided by rows total NOT Sum of amount (later will add multiple columns)

 

like 5 /43 , 31/43 , 7/43 how to get this its dynamic

 

TOTAL.png

 

1 ACCEPTED SOLUTION
cengizhanarslan
Super User
Super User

Please try the measure below:

% of Total =
DIVIDE(
    SUM('YourTable'[Amount]),
    CALCULATE(
        SUM('YourTable'[Amount]),
        ALLSELECTED('YourTable')
    )
)
_________________________________________________________
If this helped, ✓ Mark as Solution | Kudos appreciated
Connect on LinkedIn | Follow on Medium
AI-assisted tools are used solely for wording support. All conclusions are independently reviewed.

View solution in original post

6 REPLIES 6
cengizhanarslan
Super User
Super User

Please try the measure below:

% of Total =
DIVIDE(
    SUM('YourTable'[Amount]),
    CALCULATE(
        SUM('YourTable'[Amount]),
        ALLSELECTED('YourTable')
    )
)
_________________________________________________________
If this helped, ✓ Mark as Solution | Kudos appreciated
Connect on LinkedIn | Follow on Medium
AI-assisted tools are used solely for wording support. All conclusions are independently reviewed.

I need to create two tables to get calculation of value and %, how we can get one table instead of multiple.

this is example my tables contains huge dataset like region/country/state and etc..

 

example

TOTAL.png

Measure 1 = SUM(Table[amount]

 

Measure 2 = 

% of Total =
DIVIDE(
    SUM('YourTable'[Amount]),
    CALCULATE(
        SUM('YourTable'[Amount]),
        ALLSELECTED('YourTable')
    )
)

  

Ashish_Mathur
Super User
Super User

Hi,

First write an explicit measure

Total = sum(Data[Amount])

Then use a visual calculation.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Ashish_Mathur
Super User
Super User

Hi,

First write an explicit measure

Total = sum(Data[Amount])

Then use a visual calculation.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
rohit1991
Super User
Super User

Hii @RajK2 

 

You need row value ÷ overall grand total (dynamic). Create a measure, not a column:

% of Grand Total =
DIVIDE(
    SUM('Table'[Amount]),
    CALCULATE(
        SUM('Table'[Amount]),
        ALL('Table')
    )
)

This keeps the row context (China, International, USCAN) but removes filters to get full grand total (43).


Did it work? ✔ Give a Kudo • Mark as Solution – help others too!

Its return all rows = 1, which is wrong

Grand Total =

DIVIDE(    [amount],
CALCULATE(
    [amount],
  ALL('Region Table'[Region])
))

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.