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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
powerJR88
Frequent Visitor

How to get certain benchmarking items for 3 years next to each other

Hi,

I've created a clustered column chart with benchmark metrics provided by the client for one of the dashboards. The client is looking for a clustered column or bar chart that displays a certain benchmark metric for the years 2021, 2022 and 2023 next to each other based on region. For example: APAC LQ 2021 would be next to EMES LQ 2021 which would be next to NA LQ 2021 which would be next to NA LQ 2021, then it would go to APAC LQ 2022, APAC LQ 2023, APAC Med 2021.... all the way until APAC UQ 2023.

 

This is what I have so far:

 

powerJR88_0-1728937296458.png

 

How do I change this to what I have described above the bar chart? Appreciate the help.

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

Hi @powerJR88 ,

 

According to your statement, I think you want result as below.

vrzhoumsft_6-1729066523327.png

Here I agree with  lbendlin's reply and I will give you more details with a sample.

Firstly you need a measure name table.

vrzhoumsft_1-1729063475311.png

Measure = 
SWITCH (
    MAX ( 'Measure Name'[Measure Name] ),
    "LQ", [Average of Lower Quartile],
    "Med", [Average of Median],
    "UQ", [Average of Upper Quartile]
)

Then create your visual as below. Sort your visual by [Measure Name] in Tooltips.

vrzhoumsft_4-1729066447872.png

If you want to DIY the color of column, you can try this code and use conditional formatting.

Color for measure =
SWITCH (
    MAX ( 'Measure Name'[Measure Name] ),
    "LQ", "#002A3A",
    "Med", "#004F71",
    "UQ", "#64CCC9"
)

vrzhoumsft_3-1729063668864.png

Result is as below.

vrzhoumsft_5-1729066514949.png

 

Best Regards,
Rico Zhou

 

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

2 REPLIES 2
v-rzhou-msft
Community Support
Community Support

Hi @powerJR88 ,

 

According to your statement, I think you want result as below.

vrzhoumsft_6-1729066523327.png

Here I agree with  lbendlin's reply and I will give you more details with a sample.

Firstly you need a measure name table.

vrzhoumsft_1-1729063475311.png

Measure = 
SWITCH (
    MAX ( 'Measure Name'[Measure Name] ),
    "LQ", [Average of Lower Quartile],
    "Med", [Average of Median],
    "UQ", [Average of Upper Quartile]
)

Then create your visual as below. Sort your visual by [Measure Name] in Tooltips.

vrzhoumsft_4-1729066447872.png

If you want to DIY the color of column, you can try this code and use conditional formatting.

Color for measure =
SWITCH (
    MAX ( 'Measure Name'[Measure Name] ),
    "LQ", "#002A3A",
    "Med", "#004F71",
    "UQ", "#64CCC9"
)

vrzhoumsft_3-1729063668864.png

Result is as below.

vrzhoumsft_5-1729066514949.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

lbendlin
Super User
Super User

You will need to create a reference table with the names of your measures.  Then add that column and the region column to the X axis, expand the hierarchy, and create a new measure that calculates the value based on the selections.

 

Please provide sample data that fully covers your issue.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.