Hi,
I have a slicer with years.
When I select a year from that slicer, I want to obtain information on the selected year in a visual, but in another visual I want to obtain information from the previous year.^
I’ve looked for different solutions but I can’t get the desired result.
BrianJ
February 5, 2021, 9:12pm
2
@JoaoMonteiro ,
Disconnected table to the rescue.
Create a disconnected table through Modeling, New Table
DisconnYr = VALUES( Dates[Year] ) and then use that field in your slicer.
Harvest value from DisconnYr:
Harvest DisconnYr = SELECTEDVALUE( DisconnYr[Year] )
Harvest previous year:
Harvest PrevYr = [Harvest DisconnYr] - 1
Now for your first table, set the filter condition for your Orders Qty measure to:
FILTER( Dates, Dates[Year] = [Harvest DisconnYr])
and for your second table, set the filter condition the same way, but use [Harvest PrevYr].
I hope that’s helpful.
Hi @BrianJ
Thank you so much for your help.
Regards
Joao Monteiro