Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
Check it out now!Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
Dear Power BI guru,
I am wondering if there is a way todetermine which one in a list of Monday's dates is the last Monday for the month.
For example, the following list of date are all Monday, and I want to know which one of them is belong to the last Monday for the month.
I cannot find any query function to achieve this, could you help? thank you.
Regards,
Aiyo
Solved! Go to Solution.
Hi @aiyosap ,
Please try the measure.
Is_last_Monday =
VAR diff =
DATEDIFF ( MAX ( 'Table'[Date] ), EOMONTH ( MAX ( 'Table'[Date] ), 0 ), DAY )
RETURN
IF ( diff <= 6 && diff >= 0, 1 )
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @aiyosap ,
Please try the measure.
Is_last_Monday =
VAR diff =
DATEDIFF ( MAX ( 'Table'[Date] ), EOMONTH ( MAX ( 'Table'[Date] ), 0 ), DAY )
RETURN
IF ( diff <= 6 && diff >= 0, 1 )
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I notice, many times, you have simply provide answer for the sake of gaining the top kudo spot in the forum.
This is not right. please stop.
Thank You.