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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Hiding value for future dates but keeping date on axis

Hi All, 

 

Does anyone know how to hide bars for future dates but keep the actual dates visible on the x-axis? I want my line chart to forecast for the future, but i dont want my bars to be populated for dates > TODAY(). 

 

i can't seem to get the logic right

 

PBIX below to show you what it currently looks like. 

Thanks all. 

 

https://drive.google.com/file/d/1-kUMJJK5lC4Wag8j3jJYcpwJzJzfeR3D/view?usp=sharing 

1 ACCEPTED SOLUTION

@Anonymous , In that case control your measure

 

calculate([measure], filter('Date', 'Date'[Date] <today()))

 

Hope I it correctly.

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
amitchandak
Super User
Super User

@Anonymous , visual level filter, relative/advance date for last x year years including today. This will not allow future data.

 

See if this can help

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
Anonymous
Not applicable

Hi Amit, 

 

The issue is that i still want the x-axis to show future dates as i need the line graph to show forecasting. I just want the bar charts to not populate for future dates as it doesn't make sense since no data should exist for it. 

@Anonymous , In that case control your measure

 

calculate([measure], filter('Date', 'Date'[Date] <today()))

 

Hope I it correctly.

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
Anonymous
Not applicable

That worked like a charm. Thanks so much!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

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