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
WishAskedSooner
Continued Contributor
Continued Contributor

Using Parameters with Non-Categorical Data

Hi Experts,

 

I am trying to create a Line Chart with X-Y data and a Parameter and Slicer that allows the user to to flip between two different X-axis values. However, I can't seem to get it to work.

 

Do parameters only work for categorical data?

 

Thanks!

1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @WishAskedSooner 

 

Field parameters work on both categorical and numerical data

danextian_0-1741265985130.gif

You might need to enable Show values of selected filed for it to work properly

danextian_1-1741266053944.png

 

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

3 REPLIES 3
danextian
Super User
Super User

Hi @WishAskedSooner 

 

Field parameters work on both categorical and numerical data

danextian_0-1741265985130.gif

You might need to enable Show values of selected filed for it to work properly

danextian_1-1741266053944.png

 

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

@danextian Thanks for the tip! The show values of selected field was what I needed!

Akash_Varuna
Super User
Super User

Hi @WishAskedSooner Parameters in Power BI can work with both categorical and numerical data for your Line Chart try this please

  • Create a parameter by going to "Modeling" > "New Parameter" > "Fields Parameter" and add the two X-axis fields you want to toggle between.
  • Add the parameter to a slicer, allowing the user to select which field to use as the X-axis.
  • Drag the parameter into the X-axis field of your Line Chart and add the Y-axis field as usual.
    If this post helped please do give a kudos and accept this as a solution
    Thanks In Advance

Helpful resources

Announcements
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!

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