Forum Discussion
SimonGrams
Helper I
8 years agoDisplay only data of full weeks
Hi everyone, I work with a database which is updated daily (05:00 am) , but my users only want to see full weeks (Monday - Sunday) in their dashboards. ---> I do not understand what kind of a co...
- 8 years ago
v-chuncz-msftThanks for your answer.
I solved my problem by creating a column in my date table, which tells me how many days of the week already exist
DaysOfWeek = COUNTX ( FILTER ( 'Date_final'; EARLIER ( 'Date_final'[YearWeek] ) = 'Date_final'[YearWeek] ); 'Date_final'[YearWeek] )Afterwards I created my max-week logic by this column (max week where DaysOfWeek = 7)
v-chuncz-msft
Community Support
8 years ago
You may try to use DATEDIFF Function. The post below is for your reference.
SimonGrams
Helper I
8 years agov-chuncz-msftThanks for your answer.
I solved my problem by creating a column in my date table, which tells me how many days of the week already exist
DaysOfWeek =
COUNTX (
FILTER ( 'Date_final'; EARLIER ( 'Date_final'[YearWeek] ) = 'Date_final'[YearWeek] );
'Date_final'[YearWeek]
)Afterwards I created my max-week logic by this column (max week where DaysOfWeek = 7)