Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
HenSza
Frequent Visitor

Measure's value as a filter value

Hi All, 

 

I have an apparently very simple task but I can't solve that.

 

I have a measure (Selected supervisor) which contains the actul value of a Swith () function (within multiple ISFILTERED () functions). I can display the acutal value in a Card without any issue. 

 

I have a table of users, they have a SUPERVISOR ID columns. I want to use the actual value of the measure (Selected supervisor) filtering users in a Table visual (keep rows where Supervisor ID = value of Measure (Seleceted supervisor)).

 

How can I do that?

 

Thank you in advance!

1 ACCEPTED SOLUTION

I was able to solve the problem. 
I created an additional measrue: 

Matching Supevisor = IF(VALUES(USERS[Supervisor ID]) = [SELECTEDSupervisorID], 1,0)

Than I filtered Matching Supevisor to 1 and got the desired result.

Thank you for your help at all!

 

View solution in original post

5 REPLIES 5
ray_aramburo
Super User
Super User

You can't add a measure as a slicer. You can add it in the filters pane though, but you need to be quite explicit on the value the measure has to be equivalent. For example Measure is ID 4, or Measure is not 4, Measure is > 4, etc. 





Did I answer your question? Give your kudos and mark my post as a solution!

Proud to be a Super User!





I understand that I cannot add measure as slicer. The Measure has only one 9 digit number as value (like 980211541) I want to use the actual value (which are changing based on user's interaction) to filter rows. I cannot add measure’s value to filter pane as value for Advanced filtering.

 

I need something like that:

SuperVisorID
Shows items when the value
is
[the actual value of the Measure]

 

You can only place a measure in the filter pane cards without referring to an explicit value in Top N type filters, otherwise is not possible.





Did I answer your question? Give your kudos and mark my post as a solution!

Proud to be a Super User!





I was able to solve the problem. 
I created an additional measrue: 

Matching Supevisor = IF(VALUES(USERS[Supervisor ID]) = [SELECTEDSupervisorID], 1,0)

Than I filtered Matching Supevisor to 1 and got the desired result.

Thank you for your help at all!

 

Great approach!





Did I answer your question? Give your kudos and mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.