Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I am using the Play Axis custom visual to create an animation of a treemap. This treemap uses coloring that is based on a gradient from red to green. Essentially, the parameters of the treemap (size of boxes, colors, etc.) are all aggregates based on a specific time frame. The idea is to model the amount of red vs green on the treemap for individual timeframes.
I have used the Play Axis to animate this treemap because I want to see how it changes over time. The issue is that the Play Axis uses only individual dates and not ranges. This is an issue because individual variances between different dates are extreme, and I want to show gradual change.
What I want is overlapping ranges, where each frame in the animation removes the oldest date and inserts the newest date. Thus, if frame 1 showed a treemap aggregated from June 1 - June 5, then frame 2 should show a treemap aggregated from the dates June 2 - June 6. Is there a way to do this?
Solved! Go to Solution.
Hi @mrqs97
You need to add to the date table a column for the needed intervals:
modify needed interval
The column that you got will work, but on the play axis it will be formatted as a date time:
To solve this issue you can add a formatted column ( data type text)
as it is a text column you need also to modify the sort order by the date bins
now you can put the new formatted column on the play axis
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Hi @mrqs97
You need to add to the date table a column for the needed intervals:
modify needed interval
The column that you got will work, but on the play axis it will be formatted as a date time:
To solve this issue you can add a formatted column ( data type text)
as it is a text column you need also to modify the sort order by the date bins
now you can put the new formatted column on the play axis
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
71 | |
68 | |
34 | |
27 | |
26 |
User | Count |
---|---|
98 | |
96 | |
60 | |
44 | |
40 |