Forum Discussion

MetrumOBE's avatar
MetrumOBE
Regular Visitor
7 years ago
Solved

How to remove (Blank) value using URL Filtering

Hi the community,   I've published a report that need to be filtered via (url filtering) to remove (Blank) values. By design, the report contains Report Level Filter doing this job by Advanced fil...
  • v-frfei-msft's avatar
    7 years ago

    Hi MetrumOBE,

     

    Maggie Replied my that the writer of the online document.

     

    It looks like it depends on the data type. Doing filter=Table/Column ne ‘’ will work if Column is a string type. But this doesn’t work for numbers or dates since it is trying to compare invalid data types to the empty string.

     

    Our parser doesn’t have support for null as a right hand side expression, but we can add that functionality as part of the OData improvements after the accessibility work is finished. But for now this would only work for string values. There is a workaround by doing something like (filter=Table/Num gt L) where L is the lowest number in their dataset (or use “lt” and the value would be the largest number in that column). This would filter out empty values but you would need to know the high/low bounds of your dates and numbers.

     

    Regards,

    Frank