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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
romovaro
Post Partisan
Post Partisan

Formula -- Before current month / Current Month / Future Months / Unscheduled

HI

 

I have a Go live column as shown below:

 

romovaro_0-1658915971492.png

 

I am struggling to create a formula that can filter:

 

Before current month (In this case before July 2022)

Current month (In that case July 2022)

Future Months smaller than 01/01/2050 (2050 NOT included)

and if Date = 12/01/3000 = Unscheduled

 

Example:

6/1/2022Done
9/1/2022Pending Scheduled
9/1/2022Pending Scheduled
11/1/2022Pending Scheduled
12/1/3000Unscheduled
12/1/3000Unscheduled
7/1/2022Current Month

 

Any idea?

 

thanks

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@romovaro ,

In case you need a column

Switch( true() ,

[Ops forecast & Acttual] <= eomonth(Today(),-1), "Done",

eomonth([Ops forecast & Acttual],0) = eomonth(Today(),0), "Current Month",

[Ops forecast & Acttual] > eomonth(Today(),0) && [Ops forecast & Acttual]  <date(3000,12,1) , "Scheduled",

 "UnScheduled"

)

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@romovaro ,

In case you need a column

Switch( true() ,

[Ops forecast & Acttual] <= eomonth(Today(),-1), "Done",

eomonth([Ops forecast & Acttual],0) = eomonth(Today(),0), "Current Month",

[Ops forecast & Acttual] > eomonth(Today(),0) && [Ops forecast & Acttual]  <date(3000,12,1) , "Scheduled",

 "UnScheduled"

)

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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