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
scarbajo
Frequent Visitor

DAX : TOTAL % ROW OF ONE OF THE ROWS (NOT TOTAL)

Hello!

 

I have a request regarding  a measure that calculates % (Budget) of Total Budget of Account Group "01"

 

Is there any DAX expert around that can help me with this 🙂

 

Thanks

 

ACCOUNT GROUPBUDGET% OF ACCOUNT GROUP "01"
01115.079.546,44100%
0222.682.861,8319,40%
0315.138.325,7612,30%
044.699.545,354,02%
054.093.782,283,50%

 

1 ACCEPTED SOLUTION
Vvelarde
Community Champion
Community Champion

@scarbajo

 

hi, try with this:

 

% of AccountGroup1 =
DIVIDE (
    SUM ( Table2[BUDGET] ),
    CALCULATE (
        SUM ( Table2[BUDGET] ),
        FILTER ( ALL ( Table2 ), Table2[ACCOUNT GROUP] = "01" )
    )
)



Lima - Peru

View solution in original post

2 REPLIES 2
Vvelarde
Community Champion
Community Champion

@scarbajo

 

hi, try with this:

 

% of AccountGroup1 =
DIVIDE (
    SUM ( Table2[BUDGET] ),
    CALCULATE (
        SUM ( Table2[BUDGET] ),
        FILTER ( ALL ( Table2 ), Table2[ACCOUNT GROUP] = "01" )
    )
)



Lima - Peru

Thanks @Vvelarde

 

I had to replace SUM(Value) with a mesure but your solution worked! 

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.