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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Qotsa
Helper V
Helper V

Filter but don't include the current week.

Hi,

 

My table has a date column & Week column. How do I filter the report using the report level filter to

only show data up to but not including the current week?

1 ACCEPTED SOLUTION

Hi @Qotsa,

 

 

Yes, you could create a calculated column with the formula below.

 

Column =
VAR week_ = 'Table'[week]
VAR currentweek =
    WEEKNUM ( TODAY () )
RETURN
    IF ( week_ < currentweek, 1, 0 )

Then drag the calculated column to reported level filter and set like below.

 

Capture.PNG

 

Best  Regards,

Cherry

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

View solution in original post

4 REPLIES 4
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Qotsa,

 

If you want to show the data before the current week by report level filter, I'm afraid that you should type the current week number manually in report level filter.

 

report visual level.PNG

 

Best Regards,

Cherry

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

Hi @v-piga-msft,

 

Would it be possible to create a calculated column that I could add in here?

I have a date column that could be used. 

A calculated column that is Current week -1 or something like this?

Hi @Qotsa,

 

 

Yes, you could create a calculated column with the formula below.

 

Column =
VAR week_ = 'Table'[week]
VAR currentweek =
    WEEKNUM ( TODAY () )
RETURN
    IF ( week_ < currentweek, 1, 0 )

Then drag the calculated column to reported level filter and set like below.

 

Capture.PNG

 

Best  Regards,

Cherry

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

That's perfect. Thank you very much.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.