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
JoseHop1
New Member

How do I create a column that checks another column to see if the date is on or after today?

So far I have this:

let
Bron = Sql.Database("sqlsrv-group-prd-datawarehouse.database.windows.net", "sqldb-group-prd-hr"),
dbo_Roltoewijzing_OE = Bron{[Schema="dbo",Item="Roltoewijzing_OE"]}[Data],
#"Aangepaste kolom toegevoegd" = Table.AddColumn(dbo_Roltoewijzing_OE, "Einde toewijzing rol OE als DateTime", each if [Einde toewijzing rol OE] <> null then DateTime.From([Einde toewijzing rol OE]) else #datetime(2999, 12, 31, 0, 0, 0)),
#"Type gewijzigd" = Table.TransformColumnTypes(#"Aangepaste kolom toegevoegd",{{"Einde toewijzing rol OE als DateTime", type datetime}}),
Aangepast1 = #!"Table.AddColumn(#""Type gewijzigd"", ""rol toewijzing huidig of oud"", each if Date.From([Einde toewijzing rol OE as DateTime]) >= then ""huidig"" else ""oud"")"
in
Aangepast1

But I get a column with 100% error

Can anyone help me with this?
thanks sofar, Jose

1 ACCEPTED SOLUTION
JoseHop1
New Member

I foud the solution myself:
I used the conditional column

View solution in original post

1 REPLY 1
JoseHop1
New Member

I foud the solution myself:
I used the conditional column

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