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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
DawK_si
New Member

Latest period filter

Hi all,

 

I have a report showing weekly sales data.

In the fact data table  I have information about the customer, amount, and a week identifier (in text format, e.g., 2025-04).
The week is also added to a filter at the top of the page, allowing users to select which week to display.

I would like to ask if there is a way to set it so that the most recent week is always shown by default unless a user selects a different one?

Thanks in advance

2 REPLIES 2
v-jiewu-msft
Community Support
Community Support

Hi @DawK_si ,

Based on the testing, creating the new measure to filter the recent week.

Recent Week = 
var _week = SELECTEDVALUE('Fact Table'[week identifier])
var _latest = CALCULATE(MAX('Fact Table'[week identifier]), ALLEXCEPT('Fact Table', 'Fact Table'[week identifier]))
RETURN
IF(_latest = _week, 1, 0)

Then, drag the measure to the table visual and set the show item is 1.

vjiewumsft_0-1739239201638.png

Besides, select the week slicer is shown below.

vjiewumsft_1-1739239235668.png

Best Regards,

Wisdom Wu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

wini_R
Resolver V
Resolver V

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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