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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

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.