I have a filter Nombre/Montant in the static_table_filter[filter_name] :
If I select Nombre it will get the Montant measure, if I select Montant it will get the Montant measure
SwitchFilter =
var selected = SELECTEDVALUE(static_table_filter[filter_name])
var Nombre = 'Measure'[Nombres]
var Montant = 'Measure'[Montant]
var result =
switch(true(),
selected= "Nombre", Nombre,
selected= "Montant",Montant
)
return
result
I am putting the SwitchFilter in a stacked bar chart like below adding a column category :
I want when I select Montant the formatting in the chart will be in euros (adding a symbol €) and when I select Nombre the formatting will be in K like for example 5000 becomes 5K. How can I reach that ?
I am using a live connection to an SSAS tabular cube.