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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
KristofferAJ
Helper III
Helper III

Create column using the earliest date (in powerQuery)

HI,

Im moving my calculated columns into powerquery as I believe thats the 'right' way to do it..

 

I have some simple calcualtions like a "START" date

 

Which is the earliest date between 2 dates, I have handled this with a 'normal' MIN function in the desktop.

 

But how can I express this within a 'add column' in powerquery itself???

 

KristofferAJ_0-1653302377237.png

 

1 ACCEPTED SOLUTION
Shishir22
Solution Sage
Solution Sage

Please try- 

= if ([Site RTE Actual] < [Site FSI Actual] then [Site RTE Actual] else [Site FSI Actual]

 

Please mark it as answer if it solves your issue. Kudos are also appreciated.

 

 

Cheers,
Shishir

View solution in original post

4 REPLIES 4
KristofferAJ
Helper III
Helper III

Not working but I understand your line of thinking and I can tweak it as a conditional column! thanks a lot

KristofferAJ
Helper III
Helper III

Thanks @Shishir22 , whis works... but what if there is no [Site FSI Actual] date... then I will be stuck with a blank, even if the is a [Site RTE Actual]

Shishir22
Solution Sage
Solution Sage

Please try- 

= if ([Site RTE Actual] < [Site FSI Actual] then [Site RTE Actual] else [Site FSI Actual]

 

Please mark it as answer if it solves your issue. Kudos are also appreciated.

 

 

Cheers,
Shishir

If that is the case then you need to add that condition also- 

= if [Site RTE Actual] < [Site FSI Actual] then [Site RTE Actual] 
else if [Site FSI Actual] > [Site FSI Actual] then [Site FSI Actual]
else if [Site FSI Actual] = "" then [Site FSI Actual]
else [Site FSI Actual]

 

Please mark it as answer if it resolves your issue. Kudos are also appreciated.

 

 

Cheers,
Shishir

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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