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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Sab
Helper V
Helper V

Filter visuals to show only years equal or previous to whats in Play Axis

Hello!

I have a table with a Year column and some other columns like Visitor Volume. I want to create a measure to put it as a Page Level filter to show only years equal or previous to what's in the Play axis.

 

For example, If the Play Axis is on 1974, the chart will show bars for 1970, 1971, 1972, 1973, and 1974 with their actual values. When the play axis is on 1975, then another bar is added to the column chart for that year, etc.

Sab_0-1732904324782.png

Thanks!

 

8 REPLIES 8
Sab
Helper V
Helper V

This looks like a job for Superman @AlbertoFerrari  🤔

Ashish_Mathur
Super User
Super User

Hi,

I am not sure whether this will work with a play axis but you may refer to my solution to a similar problem in the attached files.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

I changed your slicer to Play Axis, and it doesn't work 😞

Sab
Helper V
Helper V

@amitchandak any idea about this bro?

lbendlin
Super User
Super User

You will need to use a disconnected table for the years and the standalone play axis visual.  This will not work with the built-in play axis.

 

Edit: The standalone PlayAxis visual is highlighting, not filtering.  Not a good UX.

 

 

thanks for the reply, I have a disconnected table and I disabled the play axis interaction with the chart, now I need to tune the measure. This one doesn't work:

Visitors =
CALCULATE(
    SUM('MainTable'[Visitor Volume]),
    FILTER(
        ALL('MainTable'),
        'MainTable'[ Year] <= MAX('DisconnectedTable'[ Year])
    )
)

 

Can you help on this?

No, I don't think what you want to do is possible, nor do I think that it provides any value for your users. Go back to the drawing board and figure out what you actually need to achieve.

If you think it's not possible, that's fine. But it's not for you to decide whether that functionality brings value to my users or not.

 

Thanks again!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.