Hello,
I wanted to slice the data based on Measures. I had this table below.
I summed up Quantity and Amount and made a mesure as
Hi @Hamdan1234,
Can you please share a pbix or some dummy data that keep raw data structure with expected results? It should help us clarify your scenario and test to coding formula.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
Hello @amitchandak ,
I have used the same video but still not filtering. It would be helpful if I could send you tthe file to you and if you can see the problem in it.
@Hamdan1234 , Try to use Selected Measure in visual it should work
if datatype is number
Selected Measure = SELECTEDVALUE(Slicers[Code],1)
SlicerBest =
SWITCH(
[Selected Measure],
1, [Sum of Amount 2],
2, [Sum of Quantity 2]
)
refer if needed