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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Tayyab
Frequent Visitor

Show/Hide trend line using DAX

Hello,

 

Any Idea how to Show or Hide the trend line using DAX?

2 REPLIES 2
v-jingzhang
Community Support
Community Support

Hi @Tayyab 

 

Sorry the description is not clear. Can you please provide some sample data and more details to describe the requirement? https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523 

 

If the trend line value is calculated by a measure, you can consider using ISFILTERED or SELECTEDVALUE to tell whether a slicer is picking a value. When a value is picked, the measure calculates the correct trend value. Otherwise, make the measure return blank. 

 

Or you can try creating bookmarks for Show and Hide status separately. Then bind the bookmarks to buttons and use buttons to switch the bookmarks. 

 

Reference:

Power BI bookmarks 

Power BI buttons 

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.