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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Can I Make a Line in a Line Chart Disappear?

LineChart.JPG

Hello,

I have this Line Chart visual. I was asked to make the red one disappear after today's date. Is it possible?

 

thank you!

 

 

2 ACCEPTED SOLUTIONS
ibarrau
Super User
Super User

Hi!. I don't think you can solve something like that in formatting options. You can make a line invisible in formatting options. What you can do is change your data. You can create a measure of the red line with a condition that if it is this year it should return a BLANK value else the regular value.

 

Regards,


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

View solution in original post

@Anonymous, instead of 0 make it blank after today's day. That should make it disappear.

 

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

View solution in original post

4 REPLIES 4
ibarrau
Super User
Super User

Hi!. I don't think you can solve something like that in formatting options. You can make a line invisible in formatting options. What you can do is change your data. You can create a measure of the red line with a condition that if it is this year it should return a BLANK value else the regular value.

 

Regards,


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

Anonymous
Not applicable

@ibarrau 

Hi! Thank you for your reply!

I tried putting zeros into all the data fields after today's date. Then the line just drops. is there a way to just cut it off "mid air"?

@Anonymous, instead of 0 make it blank after today's day. That should make it disappear.

 

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

Changing data should work too. I would recommend the measure to keep data and avoid it just for that chart.

 

I'm sorry, but as I have mentioned before I don't think there is a way to just cut it whenever you want with clicks or formatting options. 

 

Regards,


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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 Kudoed Authors