Forum Discussion
Anonymous
6 years agoNot applicable
Check if date falls between two dates
Hi All Hoping someone can help I have a table which contains various data items for clients including a 'last contacted date'. I need to be able to identify whether the 'last contacted date'...
Anonymous
6 years agoNot applicable
Hi Anonymous ,
Not sure what's your table looks like but you can get the start of last two and last four weeks and end of week by the measure as below.
start_of_last2_weeks = CALCULATE(MIN('Table'[Date]),WEEKNUM('Table'[Date],2)=WEEKNUM(TODAY(),2)-1)
start_of_last4_weeks = CALCULATE(MIN('Table'[Date]),WEEKNUM('Table'[Date],2)=WEEKNUM(TODAY(),2)-3)
end_of_week = CALCULATE(MAX('Table'[Date]),WEEKNUM('Table'[Date],2)=WEEKNUM(TODAY(),2))
Best Regards,
Jay
Community Support Team _ Jay Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
edhans
6 years agoCommunity Champion
Anonymous - can you let us know if any of us are on the right track here? Thanks!
How to get good help fast. Help us help you.
How to Get Your Question Answered Quickly
How to provide sample data in the Power BI Forum