Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I've created column for weeks and want show only last 5 columns in matrix with auto append feature . it should add latest week in visual once data is updated
Solved! Go to Solution.
Hi @Anonymous ,
You could simply add the [date] to visual filter and set filter value as "in last 4 weeks".
Best Regards,
Jay
Hi @Anonymous ,
You could simply add the [date] to visual filter and set filter value as "in last 4 weeks".
Best Regards,
Jay
thank you
@Anonymous , check suggestion by @Anonymous ,
You can create a new column like this in date table, and select last 5 week and save
Week Type =
var _st = today() +-1*WEEKDAY(today() ,2)+1 -35
var _end = today() + 7-1*WEEKDAY(today(),2)
return
Switch( True(),
[Date] >= _st && [Date] <= _end ,"Last 5 week" ,
[Week Name]
)
Following these steps may resolve your query-
1) Select the matrix/visualization from the canvas
2) Go to the filters pane
3) Go to 'Filters on the visual' > Drag your column field and then expand it
4) From filter type select 'Top N'
5) Beside top enter value as 5
6) Drag your column field again in 'By Value' and click apply filter
This may resolve your query of showing the last five weeks and it will also do auto append to show the latest week as soon as the data is updated
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 96 | |
| 70 | |
| 50 | |
| 42 | |
| 40 |