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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Anonymous
Not applicable

Calendar measure issue - Forecast show the next month over the up coming years.

Dear everyone,

 

I have an issue regarding a calendar column that I created. 

 

In fact, I would like a formula which include the full current month with the future month coming on this year and over the next years. Actually, this is a kind of forecast. 

 

My current formula on the calendar is the following :

 

Flag After Today = if('Calendar'[Date] >= TODAY();"Yes";"No")
 
As you can guess, the issue is that it does not include the current month starting from 01/11. 
 
How can I do to show the full current month with the next month coming over 2019,2020 etc.

 

Thanks you very much.

 

Regards,

 

1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

Create a measure

Measure = IF(DATEDIFF(TODAY(),MAX('calendar'[Date]),MONTH)>=0,1,0)

Capture1.JPG

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

Does this work?

Flag After Today = if('Calendar'[Date] >= EOMONTH(TODAY(),-1)+1;"Yes";"No")


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

Create a measure

Measure = IF(DATEDIFF(TODAY(),MAX('calendar'[Date]),MONTH)>=0,1,0)

Capture1.JPG

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Anonymous
Not applicable

I tried this measure : 

 

Flag After today = if(AND(month('Calendar'[Date])>=month(today());year('Calendar'[Date])>=year(now()));"Yes";"No")
 
But it shows the full month November, which is a good point and the month of december. But when I go on 2020, the filter is also for November and December. 😕 I want the full current month with the future last month of 2019 and the months of 2020; 2021 etc.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.