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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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.

amitchandak
Super User
Super User

@Tayyab , More information is needed. Measure slicer and calculation group can help

measure slicer

https://community.powerbi.com/t5/Desktop/Slicer-MTD-QTD-YTD-to-filter-dates-using-the-slicer/td-p/50...
https://radacad.com/change-the-column-or-measure-value-in-a-power-bi-visual-by-selection-of-the-slic...

 

calculation groups
https://www.sqlbi.com/blog/marco/2020/07/15/creating-calculation-groups-in-power-bi-desktop/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

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.

Top Solution Authors