Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago

SELECTEDVALUE not working after adding countries into the matrix

Hi Experts,

I need your help, i've been trying to figure this out but can't seem to wrap my head around it.

Firstly i have a simple matrix table showing the Year, Country and Total Sales by country:


Second i then add a measure to show me what the slicers are currently filtering based on the year slicer.

 

Test to delete = 
VAR SelectedYear = SELECTEDVALUE(DimDate[Year])
VAR SPLYYear = SelectedYear - 1

RETURN

SelectedYear

 


Third this is the result of adding that measure to the matrix. Some countries were able to detect what the Year Slicers (Eg: Argentina, Brazil)  but some were not able to. 


Please help, the reason why i want to use selectedvalue, is because SAMEPERIOD function isn't working. as we don't have cotiguous dates. 

Appreciate any help or ideas. 

2 Replies