Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
JonasV
Frequent 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 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

1 REPLY 1
JonasV
Frequent 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 

IFilterTarget

The 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.

 

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors