Forum Discussion

CNixon435's avatar
CNixon435
Regular Visitor
3 years ago
Solved

DAX Measure for creating a 100% Stacked Ribbon Chart

I am trying to build a measure that will display my "HB Gross Charges" data as a % of total for each fiscal year, similar to the Stacked Bar Chart below.   I found this post that is very similar to...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi CNixon435 ,

    Please have a try.

    HB Gross Charges % of Total = 
    DIVIDE([HB Gross Charges], CALCULATE([HB Gross Charges], ALLSELECTED()))

    Or try this .

    HB Gross Charges % of Total =
    VAR TotalCharges =
        CALCULATE ( [HB Gross Charges], ALL ( 'Date'[Fiscal Year] ) )
    RETURN
        DIVIDE ( [HB Gross Charges], TotalCharges )
    

     

    How to Get Your Question Answered Quickly 

     

    If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

     

    Best Regards
    Community Support Team _ Rongtie

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.