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

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

Reply
shekhar_shres
Advocate II
Advocate II

Dynamically choose the measure based on data in x-axis

Hi all,

I have two measures:

 

1. Monthly Growth

2. Quarterly Growth

 

In my line and clustered quarter, we have sales by quarter which can be drilled down to month level. 

(Note: bar is sales and line is growth)

 

I want the line to switch from [Quarterly Growth] to [Monthly Growth] based on the drilldown. Is it possible?

 

I tried If(Selected Value) but I realized that the quarter and month are two different columns in dates table so it is not possible. is there a way I can do the switch?

 

Thank you in advance.

Cheers

 

 

1 ACCEPTED SOLUTION
v-xulin-mstf
Community Support
Community Support

Hi @shekhar_shres,

 

Please drag and drop the fields into the matrix and check if the totals for the corresponding quarter are displayed correctly when the hierarchy is month?

Just like:

vxulinmstf_0-1630567065137.png

 

If you still have some question, please don't hesitate to let me known.‌‌

 

Best Regards,

Link

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!

View solution in original post

3 REPLIES 3
v-xulin-mstf
Community Support
Community Support

Hi @shekhar_shres,

 

Please drag and drop the fields into the matrix and check if the totals for the corresponding quarter are displayed correctly when the hierarchy is month?

Just like:

vxulinmstf_0-1630567065137.png

 

If you still have some question, please don't hesitate to let me known.‌‌

 

Best Regards,

Link

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!

shekhar_shres
Advocate II
Advocate II

For month part it worked, but for quarter that are midway, it's giving undesirable numbers(using monthly figures)

TomMartens
Super User
Super User

Hey @shekhar_shres ,

 

not sure if this is what you are looking for, but create a 3rd measure like so:

 

3rd measure = 
IF(
    HASONEVALUE( 'tablename'[Month Column] )
    , [Monthly Growth]
    , [Quarterly Growth]
)

 

Use this measure on the chart.

 

Hopefully, this provides what you are looking for.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors