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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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