Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

How To Display Percentage of Total

Hi,   How can I display the percentage of total next to the settlement? One column is text and the other column is GBP £.   Kind regards   Dom
  • MartynRamsden's avatar
    6 years ago

    Hi Anonymous 

     

    If Settlement is an explicit measure you can use a DAX expression like this:

    % Settlement = 
    VAR SettlementVal = [Settlement]
    VAR AllSettlement =
    CALCULATE (
        [Settlement],
        ALL ( Table1[Channel] )
    )
    VAR Result = DIVIDE ( SettlementVal, AllSettlement )
    RETURN Result

     

    If you've simply dropped the Settlement column from your data model and allowed Power BI to aggregate the result (i.e. an implicit measure), then simply add the column to the table again, right click it in the 'Values' field well and select Show value as>>Percent of grant total.

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

    Best regards,

    Martyn

     

    If I answered your question, please help others by accepting it as a solution.