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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
kovacikm78
Frequent Visitor

How to hide lines in a Line and column chart with field parameters

Hi guys,
I have a Line and Clusterd column chart. Primary Y axix (columns) and secondary Y axis (lines) are based on Field parameters. So I have two slicers with multiselect option where I can choose various matrics to be shown on the chart.
I am dynamicaly choosing metrics for columns and lines. The problem is, when I unselect all checkboxes in the line slicer, I get no data on the chart. In this case, when I unselect all lines checkboxes and leave only checkbox for columns, I want to see only columns in the chart. But I am not able to achieve this goal.

Can you please help me with this?
here is the example of my visual. On the left side is the slicer for columns (blue) and lines (pink):
In this case I should see only columns in my chart (but my chart is blank...)

kovacikm78_0-1689108985067.png

this should be the final result:

kovacikm78_1-1689109203700.png

example of my fields parameter for lines

Thank you very much for your help in advance

CHART_Lines = {
           ("Turnover", NAMEOF([Turnover]), 0),
         ("Margin", NAMEOF([Margin]), 1)
....
}

 

1 REPLY 1
lbendlin
Super User
Super User

 

The problem is, when I unselect all checkboxes in the line slicer, I get no data on the chart.

 

I don't think so.  In Power BI one of the weirder paradigms is that "Nothing selected" is (mostly) the same as "everything selected".

 

lbendlin_0-1689514655120.png

lbendlin_1-1689514671004.png

lbendlin_2-1689514687082.png

see attached

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.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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