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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
WishAskedSooner
Responsive Resident
Responsive Resident

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors