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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
southpawmurph
New Member

Legend for Multiple Columns

I am experiencing an issue that I need a legend that can be used for the 12 "OPEX" fields/columns seen in the screenshots. The issue is that I have a column "OpexSpend1_Label" which has the labels but this column cannot be used in the legend for the other fields/columns (i.e. OpexSpend2, OpexSpend3, etc.). I would like to have all 12 (OPEX) columns in one visual but this legend issue is holding me back. The values for those 12 columns carry the same numerical to categorical translation (i.e. 11 = Standalone Preventative...) so the values have the same meaning. Please let me know what suggestions you may have.

2021-02-16 19_15_18-Data Analytics Project - Power BI Desktop.png

2021-02-16 19_16_29-Data Analytics Project - Power BI Desktop.png

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

Hi, @southpawmurph 

You can create a Calculated table and use it to create visual. Here is the pbix.

 

Best Regards,

Caiyun Zheng

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-cazheng-msft
Community Support
Community Support

Hi, @southpawmurph 

You can create a Calculated table and use it to create visual. Here is the pbix.

 

Best Regards,

Caiyun Zheng

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi @southpawmurph 

For these type of scenario

use "OpexSpend1_Label" in the axis box and then you will be able to add all  your columns in "Values" field.

Let the legend field be empty.

I have all my data fields as Count, I would like to see each OPEX group on the x-axis and the y-axis would be the count, the legend would then be the Labels. I want to be clear the label column "OpexSpend1_Label" was taken from the OpexSpend1 column by creating a conditional column (if OpexSpend1 = 1 OpexSpend1_Label =Cloudbased). I'm pretty new and my understanding of data relationships is poor.

2021-02-16 22_29_28-Data Analytics Project - Power BI Desktop.png

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.