Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. 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 |
|---|---|
| 53 | |
| 37 | |
| 35 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 74 | |
| 70 | |
| 39 | |
| 35 | |
| 23 |