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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.