The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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
User | Count |
---|---|
68 | |
63 | |
59 | |
54 | |
28 |
User | Count |
---|---|
182 | |
81 | |
64 | |
46 | |
41 |