Forum Discussion

scarbajo's avatar
scarbajo
Frequent Visitor
9 years ago
Solved

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%

 

  • scarbajo

     

    hi, try with this:

     

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

2 Replies

  • Vvelarde's avatar
    Vvelarde
    Community Champion

    scarbajo

     

    hi, try with this:

     

    % of AccountGroup1 =
    DIVIDE (
        SUM ( Table2[BUDGET] ),
        CALCULATE (
            SUM ( Table2[BUDGET] ),
            FILTER ( ALL ( Table2 ), Table2[ACCOUNT GROUP] = "01" )
        )
    )
    • scarbajo's avatar
      scarbajo
      Frequent Visitor

      Thanks Vvelarde

       

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