Forum Discussion

mlm198's avatar
mlm198
Regular Visitor
2 years ago
Solved

Average in stacked bar chart

Hi   I have a clustered column chart which shows a quantity of different items in the stack against a month where the month is filtered with a slicer. I have added an average line on the 'add furth...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi, mlm198 

    amitchandak , thanks for your concern about this case. I tried to create a sample data as follows:

    I created a line and stacked column chart visual as shown in the following image:

    I used the following DAX to find the average of Qty:

    CALCULATE ( AVERAGE ( tblQty[Qty] ), ALL ( 'tblQty' ) )

     The results are shown in the image below:

    I've provided the PBIX file used this time below.

     

     

     

    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

    Jianpeng Li

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