Forum Discussion

HenSza's avatar
HenSza
Frequent Visitor
2 years ago
Solved

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!

  • HenSza's avatar
    HenSza
    2 years ago

    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!

     

5 Replies

  • 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. 

    • HenSza's avatar
      HenSza
      Frequent Visitor

      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]

       

      • ray_aramburo's avatar
        ray_aramburo
        Icon for Super User rankSuper User

        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.