Forum Discussion

jana1's avatar
jana1
Frequent Visitor
8 years ago
Solved

Custom visual - bar chart not working

Hi,

 

In the below link I have attached my dataset and I need to visualize this dataset in the bar chart with the TOTAL (attached right to the dataset). Please help me in this.

 

https://drive.google.com/file/d/117veuEgSAf79XqfUlJATzTIJGL7MLhfL/view?usp=sharing

 

Regards,

M Janarthanan

5 Replies

      • GeorgeBuster's avatar
        GeorgeBuster
        Advocate III

        Ok Jana1. First of all, I have to tell that your exact visualization, with your data, is not possible. If you want to add a total column, like you do, you have to build an auxiliary table with the summarized data.

         

        Region      Gender       Quantity
        Wichita      Male              16
        Wichita     Female           12
        Wichita      Total              28
        West           Male              12
        West         Female             5
        West           Total              17
        Total           Male              28
        Total         Female            17
        Total           Total             45

         

        You can build it manually, with dax or in the query editor. After that, it is as easy as set your table fields:

        - Axis: Region.

        - Legend: Gender.

        - Value: Quantity (it will transform into a function and it will work perfectly).

         

        Best,

        Jorge Bustillo.