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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Jehannum9
Regular Visitor

Visual Level Filters

I am displaying 2 different types of metrics on a single page.  One metric is a “YTD” metric and the other is a single period.  Currently each metric is has a visual Level filter individually set:

YTD Metric:

Pic1.png

Single Period:

 Pic2.png

What I would like to see is a [page/report level variable] where it would be set to “003” in this example.  Then in each visual’s filter set something accordingly:

YTD Metric:

                Posting Period <= page/[report level variable]

Single Period:

                Posting Period = page/[report level variable]

 

Can this be done?

 

Thanks in Advance

2 ACCEPTED SOLUTIONS
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @Jehannum9,

 

In your scenario, if value of "Posting Period" in page level filter is "003", it will be "001, 002, 003" in visual level. This is a paradox. We want the whole page shows up the value of 003, while one visual shows up "001, 002, 003". That means the page level filter doesn't work properly. 

 

There could be a workaround. We can integrate the visual level filter into measures. Something like this:

Measure =
IF (
    HASONEVALUE ( 'table'[Posting Period] ),
    CALCULATE (
        [formula],
        FILTER (
            ALL ( 'table' ),
            'table'[Posting Period] <= VALUES ( 'table'[Posting Period] )
        )
    ),
    [formula]
)

Best Regards!

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

I see your workaround and it got me to thinking.  If I set a page level filter to all of the posting periods needed for a YTD calculation, then I could set the Single Period KPI with a visual level filter to top 1.  

i.e.

So with a Page level Filter set like this:

Pic3.PNG

 

My YTD Metrics would remain unfiltered on Posting Period.

My Single Period Metric would be set as

Pic4.PNG

 

Thank you Dale for you quick response and helping me to see the problem from a different viewpoint.

Tim

View solution in original post

4 REPLIES 4
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @Jehannum9,

 

In your scenario, if value of "Posting Period" in page level filter is "003", it will be "001, 002, 003" in visual level. This is a paradox. We want the whole page shows up the value of 003, while one visual shows up "001, 002, 003". That means the page level filter doesn't work properly. 

 

There could be a workaround. We can integrate the visual level filter into measures. Something like this:

Measure =
IF (
    HASONEVALUE ( 'table'[Posting Period] ),
    CALCULATE (
        [formula],
        FILTER (
            ALL ( 'table' ),
            'table'[Posting Period] <= VALUES ( 'table'[Posting Period] )
        )
    ),
    [formula]
)

Best Regards!

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I see your workaround and it got me to thinking.  If I set a page level filter to all of the posting periods needed for a YTD calculation, then I could set the Single Period KPI with a visual level filter to top 1.  

i.e.

So with a Page level Filter set like this:

Pic3.PNG

 

My YTD Metrics would remain unfiltered on Posting Period.

My Single Period Metric would be set as

Pic4.PNG

 

Thank you Dale for you quick response and helping me to see the problem from a different viewpoint.

Tim

@Jehannum9,

 

Hi Tim,

You are right. In short, the page level filter has higher priority than visual level filter.

 

Best Regards!

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@Jehannum9,

 

Hi Tim,

 

Could you please mark the proper answer if it's convenient for you? That will be a help to the others.

 

Best Regards!
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.