Forum Discussion

alihijazi's avatar
alihijazi
Icon for Helper I rankHelper I
10 years ago

Ignore dimension on a chart

Hello I'm new to Power BI

I have a bar chart in which I display sales by Product name

 

I want to display on another bar the ratio of sales to Total sales

 

Please advise on how to accomplish the second bar of ratio of sales to total sales

 

2 Replies

  • v-sihou-msft's avatar
    v-sihou-msft
    Icon for Microsoft Employee rankMicrosoft Employee

    Hi alihijazi,

     

    If you want to add a bar to display ratio sales of total, you need to add a calculated column to show percentage of total along with each product. The expression can be like;

     

    SalesRatio:=Table[Sales]/CALCULATE(SUM(Table[Sales]),ALL(Table[Product]))

     

    Then you can include this data field in you bar chart.

     

    Regards,