Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
In my powerbi report, I am trying to flag as the latest working day as 1 and other days as 0.
Working Days are (Monday -> Friday)
Attached is a sample example of what I am trying to achieve.
Please help - thanks.
Solved! Go to Solution.
Hi @mo1988 ,
Here are the steps you can follow:
1. Create measure.
Measure =
var _today=TODAY()
var _week=WEEKDAY(MAX('Date'[Date]),2)
return
MAXX(
FILTER(ALL('Date'),
'Date'[Date]<_today&&NOT( _week) in {6,7}),'Date'[Date])
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @mo1988 ,
Here are the steps you can follow:
1. Create measure.
Measure =
var _today=TODAY()
var _week=WEEKDAY(MAX('Date'[Date]),2)
return
MAXX(
FILTER(ALL('Date'),
'Date'[Date]<_today&&NOT( _week) in {6,7}),'Date'[Date])
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
@mo1988 ,
maxx(filter(allselected(Date), date[Date] < date[Date] && weeknum(Date[Date],2) <6) , Date[Date])
Also, check
Power BI Workday vs Last Workday- https://youtu.be/MkYLT_GYIbM
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
146 | |
75 | |
64 | |
52 | |
47 |
User | Count |
---|---|
218 | |
87 | |
71 | |
63 | |
60 |