Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

Showing multiple text columns with a bar chart

Hi,

 

*   new to powerbi

** actual client data is different

 

 

I have a dataset which looks like this.

DealerDealer Sub locationInventory Age
H140Mumbai90
H141Goa120
H142Delhi130
H143Pune70
H144Chennai60
H145Hyderabad85
H146Bangalore40

 

I want it to be displayed like this : (tableau screenshot) (with 2 columns and then the bar)

However, i was able to get only one column and not both the columns before the bars.

Any help on this would be highly appreciated.

 

 

  • Hi Anonymous

    Two workarounds you could take into consideration.

    1.In the stacked bar chart, add "Dealer" and"Dealer Sub location" to Axis field, then click on the fourth icon (double arrow) "at the lowest level".

     

    2. in the table visual, create a measure

    Measure of Inventory Age = SUM(Table1[Inventory Age]) 

    select "conditional formatting"->Measure of Inventory Age->"data bar"

     

     

    Best Regards

    Maggie

3 Replies

  • v-juanli-msft's avatar
    v-juanli-msft
    Icon for Community Support rankCommunity Support

    Hi Anonymous

    Two workarounds you could take into consideration.

    1.In the stacked bar chart, add "Dealer" and"Dealer Sub location" to Axis field, then click on the fourth icon (double arrow) "at the lowest level".

     

    2. in the table visual, create a measure

    Measure of Inventory Age = SUM(Table1[Inventory Age]) 

    select "conditional formatting"->Measure of Inventory Age->"data bar"

     

     

    Best Regards

    Maggie

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi Maggie,

       

      I cant see data bar option in conditonal formatting?

      • Anonymous's avatar
        Anonymous
        Not applicable

        Thanks Maggie,

         

        I was able to do it with a simple measure

        My actual data has that inventory further divided into type 1 type 2 and type 3

         

        Let me know if that would be possible.