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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Puja
Helper III
Helper III

Measure Hierarchy

Hello All,

Is this measure hierarchy possible to implement ?

I have 3 measures for each season.

Season 1

Measure 1
Measure 2
Measure 3

Season 2

Measure 1
Measure 2
Measure 3
When user selects Season 1  I want to   3 measures selected in the BAR chart. 

Is it possible ?

 

Thanks 🙂

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

@Puja 

actully you don't need to cream a calculation group. Simply create a single column disconnected table that contains measure names. Then create a ResultMeasure that uses a SWITCH statement to switch between different measures based on the MeasureName in the current filter context. In the chart place only ResultMeasure in the values and Measures[MeasureName] in the x-axis 

Measures =
SELECTCOLUMNS (
    "MeasureName",
    { "Measuure 1", "Measuure 2", "Measuure 3" },
    [Value]
)
ResultMeasure =
SUMX (
    VALUES ( Measures[MeasureName] ),
    SWITCH (
        Measures[MeasureName],
        "Measure 1", [Measure 1],
        "Measure 2", [Measure 2],
        "Measure 3", [Measure 3]
    )
)

View solution in original post

2 REPLIES 2
tamerj1
Super User
Super User

@Puja 

actully you don't need to cream a calculation group. Simply create a single column disconnected table that contains measure names. Then create a ResultMeasure that uses a SWITCH statement to switch between different measures based on the MeasureName in the current filter context. In the chart place only ResultMeasure in the values and Measures[MeasureName] in the x-axis 

Measures =
SELECTCOLUMNS (
    "MeasureName",
    { "Measuure 1", "Measuure 2", "Measuure 3" },
    [Value]
)
ResultMeasure =
SUMX (
    VALUES ( Measures[MeasureName] ),
    SWITCH (
        Measures[MeasureName],
        "Measure 1", [Measure 1],
        "Measure 2", [Measure 2],
        "Measure 3", [Measure 3]
    )
)
Mahesh0016
Super User
Super User

@Puja Please go through this i hope this  helps you 
#First Link for bar Chart
https://youtu.be/UnG0u8J0pSc
https://youtu.be/2y2VP6i8S8c


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

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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