Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Helper III
Helper III

Measure as Slicer


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 

Sum of Amount 2 = SUM(Table[Order_Amount])
Sum of Quantity 2 = SUM(Table[Quantity])
Then I made a new table as below by entring the data in Power bi
Then I used below function:
Selected Measure = SELECTEDVALUE(Slicers[Code],1)
SlicerBest =
[Selected Measure],
"1", [Sum of Amount 2],
"2", [Sum of Quantity 2]
But my slicer are not filtering still. The values does not change and remain same . What should I do now. Need Help from your side.
Community Support
Community Support

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  


Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Helper III
Helper III

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.

Super User
Super User

@Hamdan1234 , Try to use Selected Measure in visual it should work


if datatype is number 


Selected Measure = SELECTEDVALUE(Slicers[Code],1)
SlicerBest =
[Selected Measure],
1, [Sum of Amount 2],
2, [Sum of Quantity 2]



refer if needed


Helpful resources

PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors