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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register 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
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.