Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Custom filter removes one extra line

Hello everyone,

I have a weird issue with a custom filter I created. It basically compares rank and selected number (range slicer) and returns 1 if selected number is greater than the rank, 0 otherwise.3 rows with the value of 1 - expected behaviour

3 rows with the value of 1 - expected behaviour

So this perfectly works without any problem but when I add this filter to my visualizations and set its "is" property to "1" to be able to see only the rows have smaller ranks than the selected number.


setting filter...

However, it filters all 0's but also 1 more line where its value is 1.
2 rows with the value of 1 after filtering - unexpected behaviour
Could anyone know how to solve this issue? I already created different filters like this one before, but this is the first time I encountered sth like this. Any help would be greatly appreciated.


Cheers,

  • Anonymous's avatar
    Anonymous
    6 years ago

    Dear v-diye-msft,

    I created a dummy pbix it works there, but it wasn't working within the original scenario with real data which is under confidentiality agreement. Anyways, I figured out that it was happening because of a relation I created between tables. So now, looks like it is working perfectly. Thank you all for your support and time you spared. I wish you have a great day and weekend ahead.

    Cheers,

4 Replies

  • jthomson's avatar
    jthomson
    Solution Sage

    Seems odd. What happens if you set the filter to <>1 (or <>0)?

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hello jthomson ,

      I tried various combinations but result is always the same :(

      • v-diye-msft's avatar
        v-diye-msft
        Community Support

        Hi Anonymous 

         

        Could you please share your dummy pbix? that would be easier for us to dig inside.