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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
bschil98
Frequent Visitor

Make the line in Line and Clustered Column Chart Optional.

Is there a way to make the line in a line and clustered column chart optional? Right now, I have a calculated measure as the line in the visualization. My current thought process is to somehow make a slicer that asks yes/no or just check/uncheck for the calculated measure to be a line.

1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

You could define a new table Slicer with a single column of two values "Yes" and "No" and then use the selected value to determine whether or not to return a blank for the line measure.

 

OptionalMeasure = IF ( SELECTEDVALUE ( Slicer[ShowLine] ) = "Yes, [LineMeasure] )

View solution in original post

1 REPLY 1
AlexisOlson
Super User
Super User

You could define a new table Slicer with a single column of two values "Yes" and "No" and then use the selected value to determine whether or not to return a blank for the line measure.

 

OptionalMeasure = IF ( SELECTEDVALUE ( Slicer[ShowLine] ) = "Yes, [LineMeasure] )

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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