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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.