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
jeseng
Helper III
Helper III

Two slicers - one line graph?

Hi,

I developing a comparison page, where I want to compare two areas. I have a line graph and I want the user only to be able to choose TWO areas from a slicer (there are 36 in total). In a regular slicer and can set it to "multiple choices with Ctrl" but I dont what more than TWO values! I then tried using two differnt slicers with singular select but then the line graph ends up empty? Is it not possible to let the viewer choose only two values from slicers and show them in a line graph? 😞

Regards Jess

1 ACCEPTED SOLUTION
parry2k
Super User
Super User

@jeseng check this video on how you can achieve it Boost Your Power BI Skills: Comparing Values of Two Categories Made Easy | PeryTUS - Power BI How To...



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.

View solution in original post

4 REPLIES 4
ERD
Community Champion
Community Champion

@jeseng , do you want to show 2 particular areas in the slicer or limit the amount of areas?

Your line graph is empty because the single value cannot be of several areas at the same time.

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your Kudos.

Check out my latest demo report in the data story gallery.

Stand with Ukraine!


Here are official ways you can support Ukraine financially (accounts with multiple currencies):
1) Support the Armed Forces of Ukraine: https://bank.gov.ua/ua/about/support-the-armed-forces
2) Come Back Alive foundation: https://www.comebackalive.in.ua/

Thank you!

Hi,
I want the user to only be able to select 2 values/areas. The idea is to compare two areas to each other, which two is up to the user, but MAX 2.

ERD
Community Champion
Community Champion

Well, you cannot limit the slicer itself, so you have to use some workaround.

One of them is to create a second table for the second slicer. And then you use the approach with two different slicers with singular select.

Another option is to use bookmarks that will show a message instead of a visual or above the visual if user selects more then 2 items in a slicer.

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your Kudos.

Check out my latest demo report in the data story gallery.

Stand with Ukraine!


Here are official ways you can support Ukraine financially (accounts with multiple currencies):
1) Support the Armed Forces of Ukraine: https://bank.gov.ua/ua/about/support-the-armed-forces
2) Come Back Alive foundation: https://www.comebackalive.in.ua/

Thank you!

parry2k
Super User
Super User

@jeseng check this video on how you can achieve it Boost Your Power BI Skills: Comparing Values of Two Categories Made Easy | PeryTUS - Power BI How To...



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
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.