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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Dave1mo1
Helper III
Helper III

Parameter to Switch Two Measures on Line Chart Together

Hi, all.

 

I'm new to using parameters, so I apologize if this is simple and I've somehow missed it.  I have the line chart below with Previous Year and Current Year values for my "28-Day Moving Average - Units" measure, and would like to add the ability for the user to change from "28-Day Moving Average - Units" to "28-Day Moving Average - Sales" and have both the PY and CY measures change to the ones I've written for Sales.

 

Ideally, I'd also like to have more than one parameter option, so if the user wanted to see "28-day Moving Average - Margin $/Unit," etc., they can just click the button to change to those measures and change it for both CY & PY.

 

Doe anyone have any guidance for this particular need?

 

Thanks so much!

 

 

Dave1mo1_0-1716476916990.png

 

2 REPLIES 2
Anonymous
Not applicable

Hi @Dave1mo1 ,

Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.

If these also don't help, please share more detailed information and description to help us clarify your scenario to test.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

parry2k
Super User
Super User

@Dave1mo1 Wherever in the measure you are using a fixed value of 28, replace that with the measure from the parameter table. 

Select Parameter Value = 
SELECTEDVALUE ( ParamterTable[ParameterTableColumn], 28 ) --28 here is the default value.


Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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
Top Kudoed Authors