Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now
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 this. The normal TupleFilter on all other dimensions works just fine.
Simply nothing happens.
Does anyone have a working example for this? I couldn't find anything about this.
All the best,
Jonas
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.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 2 | |
| 2 | |
| 2 |