I am trying to use TupleFilter in powerbi-client, since I need to filter data based on two different columns with OR statement between them (2 different columns in the same table or may be in 2 different ones), check this question out.
As I read in this docs, tuple filter can do this.
However, when I tried to use it with report.setFilters(filters)
function, I got this error from setFilters function: "undefined property is invalid".
Moreover, I didn't find the function used in the above docs in powerbi-client:
visualHost.applyJsonFilter(filter, "general", "filter", FilterAction.merge)
So, I just tried setFilters(filters).
Getting deeper in the filters docs, I found this:
Report level filter supports the following types: IBasicFilter | IAdvancedFilter | IRelativeDateFilter.
Page level filter supports the following types: IBasicFilter | IAdvancedFilter | IRelativeDateFilter.
Visual level filter supports the following types: IBasicFilter | IAdvancedFilter | IRelativeDateFilter | ITopNFilter | IIncludeExcludeFilter.
So, what I couldn't understand, how to use Tuple Filters if none of the above filter levels support it!