Forum Discussion
Chelly
2 years agoFrequent Visitor
Issue with SELECTEDVALUE in Power BI - Need Help
Hello Power BI community, I'm encountering an issue with the SELECTEDVALUE function when using a slicer for a specific year. If I choose the year 2020, for instance, the result only includes data fo...
lukiz84
Memorable Member
2 years agohi, try:
VAR SelectedYear = SELECTEDVALUE('YearTable'[Year], 2022)
_test = CALCULATETABLE(
DISTINCT(table[code]),
table[Statut] = 2,
table[year] < SelectedYear,
table[Levels] = 2
)- Chelly2 years agoFrequent Visitor
Appreciate your efforts, but the results remain unchanged.