Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Clustered Column Chart - More than one value for the same Legend

Hi everyone!

 

I'm trying to display 2 values (cost, monetarily updated cost) for 2 different kinds of matterial (paper type 1, paper type 2) along time.

 

I'd like to display these values using a clustered column chart, with time on x-axis and values on y-axis. That would give me 4 bars for each x-axis element (each month):

  1. Cost for paper type 1
  2. Updated cost for paper type 1
  3. Cost for paper type 2
  4. Updated cost for paper type 2

All the information needed is stored in a single table (ConsolidadoGeral), as seen bellow:

Table "ConsolidadoGeral": The first highlighted field registers the paper type (only 2, in this case), the second highlighted field register the data (x-axis), and the two last highlighted field registers the cost and updated costTable "ConsolidadoGeral": The first highlighted field registers the paper type (only 2, in this case), the second highlighted field register the data (x-axis), and the two last highlighted field registers the cost and updated cost

 

I've tried to set the clustered bar graph with these configuration:

  • Axis: the date field
  • Legend: the paper type field "Descrição do material" field
  • Value: The cost field ("Valor") and the updated cost field ("ValorAtualizadoCol")

The problem: Power BI only allows me to drag two fields into value attribute if there is no legend field, in such a way that I can only display the information for cost or updated cost, as shown bellow:

 

The problem: Wish I could display the two graphs in only one, showing 4 bars per x-axis pointThe problem: Wish I could display the two graphs in only one, showing 4 bars per x-axis pointView configuration: can't drag more than one field to "value" parameterView configuration: can't drag more than one field to "value" parameter

 

Can I show the cost AND updated cost in the same graph, divided by paper type ("Descrição do material" field), i.e., 4 bars for each x-axis point?

 

Any help is welcome!

Thanks in advance.

1 ACCEPTED SOLUTION
v-eachen-msft
Community Support
Community Support

Hi @Anonymous ,

 

If you want to show 4 bars, you have to need 2 new legends "Descrição do material".

You could copy your original table in the query editor and edit the "Descrição do material" column in the copy table. Then append these two tables as a new table.

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

1 REPLY 1
v-eachen-msft
Community Support
Community Support

Hi @Anonymous ,

 

If you want to show 4 bars, you have to need 2 new legends "Descrição do material".

You could copy your original table in the query editor and edit the "Descrição do material" column in the copy table. Then append these two tables as a new table.

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.