Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
SimonGrams
Helper I
Helper I

Display 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 column I can create which includes a sign like 'hey, today is Thursday, so do not include me in the graphics' :).

 

I used to work with data, which was only updated once a week (Monday), so I created Columns like:

week_Max =
IF (
    data[Year_Week] = MAX ( data[Year_Week] );
    "week_Max";
    IF ( data[Year_Week] = MAX ( data[Year_Week-1] ); "week_Max-1" )
)

Afterwards I could create measures to compare the recent 2 weeks (calculate(sum(...); week_max="week_max")....).

But how do I create a sign which tells me that the Max(Date) is not part of a full week, so it should be ignored in the graphics?

 

Any ideas?

 

Thanks in advance

1 ACCEPTED SOLUTION

@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)

 

 

View solution in original post

2 REPLIES 2
v-chuncz-msft
Community Support
Community Support

@SimonGrams,

 

You may try to use DATEDIFF FunctionThe post below is for your reference.

http://community.powerbi.com/t5/Desktop/Get-Last-6-months-And-Next-6-months-from-current-month/m-p/1...

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@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)

 

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors