Forum Discussion
Anonymous
5 years agoNot applicable
Display data for Monday every week.
Requirement is to display data only for Monday for entire week. Next week, it should again reflect values for Monday this week only. for example : Today is 12th May, Wednesday but report should refl...
- 5 years ago
Hi Anonymous ,
Create 2 columns as below:
Weeknum = WEEKNUM('Table'[Date],2)First Monday = var _mindate=CALCULATE(MIN('Table'[Date]),FILTER('Table','Table'[Weeknum]=EARLIER('Table'[Weeknum]))) var _weekday=WEEKDAY(_mindate,2) Return IF(_weekday<>1,DATE(YEAR(_mindate)-1,12,31-(_weekday-1)+1),_mindate)And you will see:
For the related .pbix file,pls see attached.
Best Regards,
KellyDid I answer your question? Mark my post as a solution!
Jihwan_Kim
5 years agoSuper User
Hi, Anonymous
Please check the below picture and a sample pbix file's link down below.
I tried to create a sample pbix file based on the explanation.
Sales Total Only reflects Monday =
CALCULATE (
[Sales Total],
FILTER (
ALL ( Dates ),
Dates[Week & Year] = MAX ( Dates[Week & Year] )
&& Dates[Day of Week] = 0
)
)
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM