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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register 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
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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