Forum Discussion
Fcoatis
7 years agoPost Patron
Matrix Rows Based on Date Slicer
Hello community, Is it possible to have a date slicer dynamically changing a Matrix rows? For instance: if min date of slicer is 28/nov/18 (today) Matrix rows should displays all days of last...
- 7 years ago
Hi Fcoatis
To workaround this,
1.create a new table as a new calnedar table used in slicer.
enter in "New Table"
slicer table = CALENDAR("01/01/18","12/31/18")
Create calculated columns in this table
Weeknum = WEEKNUM([Date],2)2. add 'slicer table'[date] in the slicer instead of Calendar[date].create measures in 'slicer table'min selected = MIN('slicer table'[Date]) weeknum_selected = WEEKNUM([min selected]) weeknum_selected-1 = WEEKNUM([min selected])-1 LastWholeWeek = IF(MAX('Calendar'[Weeknum])=WEEKNUM([min selected])-1,1,0)3. add in Visual level filter as belowFinally,Please see my solution in Page5Best ReagrdsMaggie
v-juanli-msft
7 years agoCommunity Support
Hi Fcoatis
To workaround this,
1.create a new table as a new calnedar table used in slicer.
enter in "New Table"
slicer table = CALENDAR("01/01/18","12/31/18")
Create calculated columns in this table
Weeknum = WEEKNUM([Date],2)
2. add 'slicer table'[date] in the slicer instead of Calendar[date].
create measures in 'slicer table'
min selected = MIN('slicer table'[Date])
weeknum_selected = WEEKNUM([min selected])
weeknum_selected-1 = WEEKNUM([min selected])-1
LastWholeWeek = IF(MAX('Calendar'[Weeknum])=WEEKNUM([min selected])-1,1,0)
3. add in Visual level filter as below
Finally,
Please see my solution in Page5
Best Reagrds
Maggie
- Fcoatis7 years agoPost Patron
Thank you Maggie,
That´s what I was trying to figure out.
Kind regards.
Fabio Coatis
- Fcoatis7 years agoPost Patron
Just for those interested in my adaptation of Maggie´s solution, I´m sharing the knowledge.
Thank you guys.
https://drive.google.com/open?id=1MnQ5HzmCs37oK3oXbNM13kiQOW-R2H_6