Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
...Date.AddDays(DateTime.LocalNow(), -3))
Note that you are using a datetime value to test equality against what appears to be a date column. I would wrap DateTimeLocalNow() with a Date.From, so
Date.AddDays(Date.From(DateTime.LocalNow()), -3))
--Nate
Hello
If the date falls on the weekend, how should I say -2 days out?
Hello
I wanted to take out the day by translating the date into text, can you help
DateTime.ToText(Date.From(Date.AddDays(DateTime.LocalNow(), "dd-MM-yyyy", -3)))
...Date.AddDays(DateTime.LocalNow(), -3))
Note that you are using a datetime value to test equality against what appears to be a date column. I would wrap DateTimeLocalNow() with a Date.From, so
Date.AddDays(Date.From(DateTime.LocalNow()), -3))
--Nate
User | Count |
---|---|
11 | |
7 | |
5 | |
5 | |
4 |
User | Count |
---|---|
16 | |
14 | |
8 | |
6 | |
6 |