Forum Discussion

anwarbi's avatar
anwarbi
Helper III
4 years ago

Dynamic Axis on scatter chart

Hi,
 
I would like to make my X axis and Y axis dynamic in the scatter chart based on the years selected, for this, I have created the below measure for slicer, however I am not sure what value should I add on the X and Y axis on the scatter chart to make this slicer work. 
 
Selected Year = SWITCH(SELECTEDVALUE('Measure (Year)'[Year Measure],"2022"),
"2022", [Average 2022 weight],
"2021", [Average 2021 weight],
"2020", [Average 2020 weight],
"2019", [Average 2019 weight],
"2018", [Average 2018 weight],
"2017", [Average 2017 weight]
)
 
Any help is appreciated.

1 Reply