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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply

change column using a parameter

I have a table from a select query that has 3 columns date, units, and count.

 

date                 units                  count

20160225         1                       1

20160226         1                       1

 

this is how it looks in the table

 

What I'm trying to do is create a chart that will display the dates and the units or the count.  I need to use either a parameter or a filter but I'm not sure what is the best.  I need to be able to select from a filter or a parameter units; and the line graph will generate a graph for the units, then if I need to select count the graph will change using the count.  Can someone please help?

 

Thank you,

 

Antonio Fallucca

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@antoniofallucca,

You can create a disconnected table to achieve the above requirement. for more details, please review the following PBIX file.

https://1drv.ms/u/s!AhsotbnGu1Nogyme9jhSllQtuudL

Regards,
Lydia

View solution in original post

1 REPLY 1
Anonymous
Not applicable

@antoniofallucca,

You can create a disconnected table to achieve the above requirement. for more details, please review the following PBIX file.

https://1drv.ms/u/s!AhsotbnGu1Nogyme9jhSllQtuudL

Regards,
Lydia

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.