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
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
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
Click here to learn more about the September 2022 updates!
Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.
Watch Session 25 of Ted's Dev Camp.