Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Good day all,
I have a report that will only be updated on Mondays. Currently, I have a column created with the following:
Solved! Go to Solution.
In case, you want to get last Monday every time.
1. Try taking the max of Last update date into a Var. Ideally, it should give Max date of data
2. Take Weekend in a Var use it.
Calculate(max(weekend_date),ddate<today)
3. Monday has WeekDay 2. If Today is more than that or 1 then adjust
if(WEEKDAY(Today())<>2, Today()-WEEKDAY(Today())+2,WEEKDAY(Today())
Need to handle when it is 1
Hey,
maybe you find this useful: https://community.powerbi.com/t5/Desktop/Week-commencing-in-DAX/m-p/241304
I can imagine that you create a column that will always have the date of the last Monday, regardless when the report will be used.
Regards,
Tom
Thanks Tom.
I have a EoW and SoW in both my Date table and tried it inside the source table itself, just to eliminate any relational issues. I replaced the Today call with the End of WEEK fields and don't get the expected results.
Suggestions on how I would call those fields within a column such as in my formula above?
In case, you want to get last Monday every time.
1. Try taking the max of Last update date into a Var. Ideally, it should give Max date of data
2. Take Weekend in a Var use it.
Calculate(max(weekend_date),ddate<today)
3. Monday has WeekDay 2. If Today is more than that or 1 then adjust
if(WEEKDAY(Today())<>2, Today()-WEEKDAY(Today())+2,WEEKDAY(Today())
Need to handle when it is 1
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 63 | |
| 32 | |
| 31 | |
| 25 |