Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I need to replace the value of a column if the original value is less than a certain date. I have it working with a discreet date, but how do I modify the following to make it work for any date less than 1970-01-01?
#"Replaced Value" = Table.ReplaceValue(#"Expanded project","1962-01-01",null,Replacer.ReplaceValue,{"award_notice_date"}),
Thanks!
Solved! Go to Solution.
I would add conditional column:
= Table.AddColumn(#"Expanded project", "Replaced Award Date", each if [award_notice_date] < #date(1970, 1, 1) then null else [award_notice_date])
Hi @Anonymous ,
Have you resolved the problem? If not, please try like this:
= Table.ReplaceValue(#"Expanded project",#date(1962, 1, 1),null,Replacer.ReplaceValue,{"Date"})
Hi @Anonymous ,
Have you resolved the problem? If not, please try like this:
= Table.ReplaceValue(#"Expanded project",#date(1962, 1, 1),null,Replacer.ReplaceValue,{"Date"})
I would add conditional column:
= Table.AddColumn(#"Expanded project", "Replaced Award Date", each if [award_notice_date] < #date(1970, 1, 1) then null else [award_notice_date])
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 35 | |
| 34 | |
| 31 | |
| 27 |
| User | Count |
|---|---|
| 135 | |
| 102 | |
| 67 | |
| 65 | |
| 56 |