Forum Discussion

JimJim's avatar
JimJim
Responsive Resident
6 years ago

Cross Filtering not working as expected.

Hi Guys,

 

I have a report that shows the number of appointments that are at stage work in progress (WIP) and also how many of these are >2 days. I have the following measures on my report:

 

Total WIP = CALCULATE(COUNTROWS(Appointments),Appointments[IsWIP]=1)

Total WIP < 2 = CALCULATE(COUNTROWS(Appointments),Appointments[IsWIP]=1,Appointments[WIP Days] <=2)

Total WIP > 2 = CALCULATE(COUNTROWS(Appointments),Appointments[IsWIP]=1,Appointments[WIP Days] >2)

 

I have a matrix like this one which shows the number of WIP of each area and split of < 2 days and > 2 days

 

 

I then have a table which shows the details of each row, I would like to be able to see the four rows that are < 2 days or the two rows that are > 2 days. But when I select the values 4 or 2 it filters the table to show all six rows. I'm guessing that I haven't modelled my data correctly. 

 

Any help would be appreciated.

7 Replies

      • vanessafvg's avatar
        vanessafvg
        Community Champion

        I would probably change this to a grouping rather than a measure

         

        for eg

         

        WIP Days Group = switch (true(),
        Appointments[IsWIP] = 1 && Appointments[WIP Days] < 2, "< 2 Days",
        Appointments[IsWIP] = 1 && Appointments[WIP Days] > 2, "> 2 Days",
        "Not <2 or >2")
         
        and then its easy to apply this as a filter 

         

         

    • JimJim's avatar
      JimJim
      Responsive Resident

      Hi vanessafvg , I have an example report I want to upload but I'm not sure if I am able to do it