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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
vanessafvg
Super User
Super User

See visually what filters have been applied?

Is there a way to see on a page what filters have been applied either from a slicer or selecting something in a graph?  Preferably the combination of all of the above?





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




1 ACCEPTED SOLUTION
Sean
Community Champion
Community Champion

You can try a combination of these MEASURES

1) You can Place this in a Card

Is Report Filtered =
IF (
    COUNTROWS ( ALL ( TableName ) ) - COUNTROWS ( TableName )
        > 0,
    "YES",
    "NO"
)

You can modify this further many ways especially if you use the OKViz Card with States

changing the Message and Values, etc... many, many options... Smiley Happy

2) Depending on how many values you have in the Slicer Column you can use either of these Measures

If you have too many values to list all

Year(s) Selected =
IF (
    HASONEVALUE ( 'Calendar'[Year] ),
    FORMAT ( MAX ( 'Calendar'[Year] ), "General Number" ),
    "Multiple"
)

OR

if you'd rather list all values (when you don't have that many in the slicer column you are using)

Year(s) Selected 2 =
CONCATENATEX ( VALUES ( 'Calendar'[Year] ), 'Calendar'[Year], ", " )

NOTE only the first Measure [Is Report Filtered] will show you if the report is filtered using the Page Level filters!

 

EDIT: I guess you can combine both like this

Year(s) Selected 3 = 
IF (
    COUNTROWS ( ALL ( TableName ) ) - COUNTROWS ( TableName )
        > 0,
    CONCATENATEX ( VALUES ( 'Calendar'[Year] ), 'Calendar'[Year], ", " ),
    "Showing ALL Years"
)

And the results would look like this...

So Year(s) Selected 3 will only say "Showing ALL Years" when report is NOT filtered otherwise will list the years

Is Report Filtered.gif

 

 

Hope this helps! Smiley Happy

 

View solution in original post

2 REPLIES 2
Sean
Community Champion
Community Champion

You can try a combination of these MEASURES

1) You can Place this in a Card

Is Report Filtered =
IF (
    COUNTROWS ( ALL ( TableName ) ) - COUNTROWS ( TableName )
        > 0,
    "YES",
    "NO"
)

You can modify this further many ways especially if you use the OKViz Card with States

changing the Message and Values, etc... many, many options... Smiley Happy

2) Depending on how many values you have in the Slicer Column you can use either of these Measures

If you have too many values to list all

Year(s) Selected =
IF (
    HASONEVALUE ( 'Calendar'[Year] ),
    FORMAT ( MAX ( 'Calendar'[Year] ), "General Number" ),
    "Multiple"
)

OR

if you'd rather list all values (when you don't have that many in the slicer column you are using)

Year(s) Selected 2 =
CONCATENATEX ( VALUES ( 'Calendar'[Year] ), 'Calendar'[Year], ", " )

NOTE only the first Measure [Is Report Filtered] will show you if the report is filtered using the Page Level filters!

 

EDIT: I guess you can combine both like this

Year(s) Selected 3 = 
IF (
    COUNTROWS ( ALL ( TableName ) ) - COUNTROWS ( TableName )
        > 0,
    CONCATENATEX ( VALUES ( 'Calendar'[Year] ), 'Calendar'[Year], ", " ),
    "Showing ALL Years"
)

And the results would look like this...

So Year(s) Selected 3 will only say "Showing ALL Years" when report is NOT filtered otherwise will list the years

Is Report Filtered.gif

 

 

Hope this helps! Smiley Happy

 

prathy
Advocate III
Advocate III

hi,

 

This blog post from Chris Webb may help you - https://blog.crossjoin.co.uk/2016/04/25/dynamic-chart-titles-in-power-bi/

 

For your case you could use something like - SelectedValues = IF( ISFILTERED(Sales[Category]), "Selecetd Filter " & CONCATENATEX(VALUES(Sales[Category]),Sales[Category],","),"")

 

Prathy

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.