Forum Discussion
JonasV
3 years agoFrequent Visitor
Using applyJsonFilters on a Date Hierarchy
Hi folks, I am desperately trying to get applyJsonFilters to work on a Date Hierarchy. No matter what I try (TupleFilter, HierarchyFilter), nothing works. I really have no clue how to get around ...
JonasV
3 years agoFrequent Visitor
For anyone looking into this in the future:
In the meantime I found a solution, which I am not sure of if it the way it is supposed to work. If you are using the example from the documentation
https://learn.microsoft.com/de-de/power-bi/developer/visuals/filter-api
you have to read the following property from the powerbi.DataViewMetadataColumn:
column.identityExprs[0].source.entity
and pass this as the table property for the
IFilterTargetThe rest works as in the example. Then you can add date columns for the TupleFilter.
Unfortunately this isn't in the typings. This has to be made fail safe by additional coding, of course.
If somebody has a better solution to this I would be glad to hear about it.