Forum Discussion

Power_Guy's avatar
Power_Guy
Frequent Visitor
2 years ago
Solved

Percentage Calculation Dax

Hi Team, I Need a Dynamic dax, we have two dimensional level of data(Dimension field) one is account that is first and credit that is second level That should return % of platform measur...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi Power_Guy ,

     

    Please create a new measure like:

    % of Platform = 
    VAR __cur_value = SUM('Table'[AUM])
    VAR __total_commingid = CALCULATE(SUM('Table'[AUM]),ALLEXCEPT('Table','Table'[Account]))
    VAR __grand_total = CALCULATE(SUM('Table'[AUM]),ALL('Table'[Account]))
    VAR __result = IF( ISINSCOPE('Table'[Credit]), DIVIDE(__cur_value,__total_commingid), DIVIDE(__cur_value,__grand_total))
    RETURN
    __result

    Best Regards,
    Gao

    Community Support Team

     

    If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
    If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

    How to get your questions answered quickly --  How to provide sample data in the Power BI Forum