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

Comparing Dates using logical operator

Hi Power Bi fam,

 

I want to confirm something about the calculated column I created. The column is about identifying if the customer ordered again after their last Order rating date. 

I used an IF STATEMENT to compare the last recorded order date against the last order rating date. If this the right way to do it? 

Ordered again = IF(Customers[Last Order Rating date] > Customers[Last Order Date]), "Not yet", "Yet")

11111.png

Also, I want to add a new logical statement where if the last order date is blank, it would show "No recorded order yet since signup"

Thank you guys in advance!

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@Andrew_na_lang ,

Ordered again = switch(true() ,
isblank(Customers[last order date]) , "No recorded order yet since signup",
Customers[Last Order Rating date] > Customers[Last Order Date], "Not yet"
, "Yet"
)

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

@amitchandak you are an angel brother. 

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Andrew_na_lang ,

Ordered again = switch(true() ,
isblank(Customers[last order date]) , "No recorded order yet since signup",
Customers[Last Order Rating date] > Customers[Last Order Date], "Not yet"
, "Yet"
)

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

@amitchandak you are an angel brother. 

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