Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

how to show selected filter slicer in a card in PowerBI?

I have a code below and I would like to see the selected hierarchy in a card. how to get around with this ? Many thanks in advance.

Expected Answer:

FY23: Q1, Q2, Q3, Q4

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

FY24: Q1

Selected FY = 
IF( 
    ISFILTERED( 'Calendar'[Fiscal Year] ), 
        CONCATENATEX(  DISTINCT( 'Calendar'[Fiscal Year] )
                                 ,'Calendar'[Fiscal Year] 
                                 ,", " 
), "No filter selected"
)

how does it look like

>Solution :

Try a variation on the following:

Selected Periods All = 
VAR t = 
CALCULATE(
    CONCATENATEX(
            VALUES('Calendar'[Fiscal Year]), 
            'Date'[Fiscal Year] & ": " &
                CALCULATE(CONCATENATEX(VALUES('Calendar'[Fiscal Quarter]), 'Calendar'[Fiscal Quarter], ", ")), 
            UNICHAR(10)
        )
)
RETURN   t
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading