Showing results for 
Search instead for 
Did you mean: 
Not applicable

Legend In Bar Chart With Dynamic measure

Hey guys,

I am having a bit of trouble in some visualisation requriement from the client.

I  have a measure :

Switch = SWITCH(MIN('Table'[Questions]),"Ques1",'Correlation Measures'[Correlation 1],
                "Ques2",'Correlation Measures'[Correlation 2,
                "Ques3",'Correlation Measures'[Correlation 3],
                "Ques4",'Correlation Measures'[Correlation 4],

This has to be plotted on a bar along with a category legend according to the correlation value such as "Highly correlated " or "Low Correlation".
Please help how can i add legend to the bar graph guys?

Super User
Super User

Have you tried creating it as Column?

Not applicable

Hi @amitchandak Can you please explain more to where should i created the column and how?

Helpful resources


2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

BizApps LATAM 2023

Business Application LATAM Summit 2023

Join the biggest FREE Business Applications Event in LATAM this February.

Power Platform Bootcamp

Global Power Platform Bootcamp

In this bootcamp we will deep-dive into Microsoft’s Power Platform stack with hands-on sessions and labs, delivered to you by experts and community leaders.

Top Solution Authors
Top Kudoed Authors