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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
I have a date source which is very unhelpful in that it produces date/time fields in text as
Today at 11:15 am, yesterday at 2:46 pm, Tuesday at 3:21 pm and so on until we are a week out then we start getting more helpful date and time stamps.
I played around using the created date of the extract to help calculate "today" by doing:
Table.ReplaceValue(#"Removed Duplicates","today at",each Date.ToText([Date created]),Replacer.ReplaceText,{"Date/Time"})
and for yesterday by doing:
Table.ReplaceValue(#"Replaced Value","yesterday at", each Date.ToText(Date.AddDays([Date created],-1)),Replacer.ReplaceText,{"Date/Time"})
but now unsure how to change "Monday/Tuesday/Wednesday/Thursday etc at" to a date..
Solved! Go to Solution.
You could check which day in the next week has a matching day-of-week name.
For example, add a custom column like this:
List.First(
List.Select(
List.Dates(
Date.AddDays([Date created], 1),
7,
#duration(1,0,0,0)
),
(d) => Date.DayOfWeekName(d)
= Text.BeforeDelimiter([#"Date/Time"], " " )
)
)
You could check which day in the next week has a matching day-of-week name.
For example, add a custom column like this:
List.First(
List.Select(
List.Dates(
Date.AddDays([Date created], 1),
7,
#duration(1,0,0,0)
),
(d) => Date.DayOfWeekName(d)
= Text.BeforeDelimiter([#"Date/Time"], " " )
)
)
Thank you -- this is amazing and was the key to solving the problem had to do a bit of date math after but was simple enough and got me where I needed to be!!
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 50 | |
| 49 | |
| 35 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 91 | |
| 75 | |
| 41 | |
| 26 | |
| 25 |