Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi @Anonymous ,
Solved! Go to Solution.
Hi @kkanukurthi ,
Based on my testing, please try the following methods:
1.Create the simple table.
2.Create the new column to find the last Friday current month.
last friday current month =
CALCULATE(
MAX('Table'[Date]),
FILTER(
'Table',
MONTH('Table'[Date]) =
MONTH(EARLIER('Table'[Date]))
&& YEAR('Table'[Date]) = YEAR(EARLIER('Table'[Date])) &&
'Table'[weekday] = 5
)
)
3.Create the new column to find the last Saturday previous month.
last saturday previous month =
var last_mon = 'Table'[Date]
var last_year = CALCULATE(
MAX('Table'[Date]),
FILTER(
'Table',
MONTH('Table'[Date]) =
MONTH(last_mon) - 1
&& YEAR('Table'[Date]) = YEAR(last_mon) &&
'Table'[weekday] = 6
)
)
var last_12 =
CALCULATE(
MAX('Table'[Date]),
FILTER(
'Table',
MONTH('Table'[Date]) = 12
&& YEAR('Table'[Date]) = YEAR(last_mon) - 1 &&
'Table'[weekday] = 6
)
)
RETURN
IF(MONTH('Table'[Date]) = 1, last_12, last_year)
4.The result is shown below.
Best Regards,
Wisdom Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @kkanukurthi ,
Based on my testing, please try the following methods:
1.Create the simple table.
2.Create the new column to find the last Friday current month.
last friday current month =
CALCULATE(
MAX('Table'[Date]),
FILTER(
'Table',
MONTH('Table'[Date]) =
MONTH(EARLIER('Table'[Date]))
&& YEAR('Table'[Date]) = YEAR(EARLIER('Table'[Date])) &&
'Table'[weekday] = 5
)
)
3.Create the new column to find the last Saturday previous month.
last saturday previous month =
var last_mon = 'Table'[Date]
var last_year = CALCULATE(
MAX('Table'[Date]),
FILTER(
'Table',
MONTH('Table'[Date]) =
MONTH(last_mon) - 1
&& YEAR('Table'[Date]) = YEAR(last_mon) &&
'Table'[weekday] = 6
)
)
var last_12 =
CALCULATE(
MAX('Table'[Date]),
FILTER(
'Table',
MONTH('Table'[Date]) = 12
&& YEAR('Table'[Date]) = YEAR(last_mon) - 1 &&
'Table'[weekday] = 6
)
)
RETURN
IF(MONTH('Table'[Date]) = 1, last_12, last_year)
4.The result is shown below.
Best Regards,
Wisdom Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
16 | |
13 | |
12 | |
11 | |
11 |
User | Count |
---|---|
19 | |
14 | |
14 | |
11 | |
9 |