Forum Discussion
kaka
Helper II
9 years agoCompare text with today()
I have a column called offer_date which has the followig value: Wednesday, 27 January, 2016 . I am trying to compare this date with today's date in power bi DAX formula. IF(DATEVALUE(offer_...
Greg_Deckler
Community Champion
9 years agoGo to the data model modeling tab in Power BI Desktop (or in Query Editor) and set the data type to "Date". Then you can do something like this in DAX (slightly different in M code):
Column = IF(DAY([Date]) = DAY(TODAY()) && MONTH([Date]) = MONTH(TODAY()) && YEAR([Date]) = YEAR(TODAY()),"good job","bad job")