cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jess11_11
Helper IV
Helper IV

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

@jess11_11 , In that case control your measure

 

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

 

Hope I it correctly.



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

4 REPLIES 4
amitchandak
Super User IV
Super User IV

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

 

See if this can help



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

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. 

@jess11_11 , In that case control your measure

 

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

 

Hope I it correctly.



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

That worked like a charm. Thanks so much!

Helpful resources

Announcements
MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

July 2021 Update 768x460.png

Check it out!

Click here to read more about the July 2021 Updates

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Urdu Hindi D365 Bootcamp 768x460.png

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Top Solution Authors
Top Kudoed Authors