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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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

1 ACCEPTED SOLUTION
wini_R
Solution Supplier
Solution Supplier
2 REPLIES 2
Anonymous
Not applicable

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
Solution Supplier
Solution Supplier

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.