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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Filters on graphic

Hi!

 

How can I add filters like this?

Alice23_0-1636968523888.png

So when I choose EUR it shows the value in EURO, and when I choose RON it shows value in RON? 

Thanks

 

1 ACCEPTED SOLUTION
v-luwang-msft
Community Support
Community Support

Hi @Anonymous ,

See the below ,for a sample:

base table(default value is EUR):

vluwangmsft_0-1637724062635.png

Create a slicer table:

vluwangmsft_1-1637724099750.png

 

Then use the below measure:

valuenew = 
IF (
    SELECTEDVALUE ( Slicer[type] ) = "EUR",
    "€" & ""
        & MAX ( 'Table'[Value] ),
    IF (
        SELECTEDVALUE ( Slicer[type] ) = "RON",
        "lei." & ""
            & 4.95 * MAX ( 'Table'[Value] ),
        BLANK ()
    )
)

Then create visual:

vluwangmsft_2-1637724178486.png

 

Output:

vluwangmsft_3-1637724192421.pngvluwangmsft_4-1637724198671.png

Did I answer your question? Mark my post as a solution!


Best Regards

Lucien

View solution in original post

2 REPLIES 2
v-luwang-msft
Community Support
Community Support

Hi @Anonymous ,

See the below ,for a sample:

base table(default value is EUR):

vluwangmsft_0-1637724062635.png

Create a slicer table:

vluwangmsft_1-1637724099750.png

 

Then use the below measure:

valuenew = 
IF (
    SELECTEDVALUE ( Slicer[type] ) = "EUR",
    "€" & ""
        & MAX ( 'Table'[Value] ),
    IF (
        SELECTEDVALUE ( Slicer[type] ) = "RON",
        "lei." & ""
            & 4.95 * MAX ( 'Table'[Value] ),
        BLANK ()
    )
)

Then create visual:

vluwangmsft_2-1637724178486.png

 

Output:

vluwangmsft_3-1637724192421.pngvluwangmsft_4-1637724198671.png

Did I answer your question? Mark my post as a solution!


Best Regards

Lucien

amitchandak
Super User
Super User

@Anonymous , Assume you have two measure one which have value in EURO and one in RON

Then create a measure slicer using independent table and use that

 

measure slicer
https://www.youtube.com/watch?v=b9352Vxuj-M
https://community.powerbi.com/t5/Desktop/Slicer-MTD-QTD-YTD-to-filter-dates-using-the-slicer/td-p/500115
https://radacad.com/change-the-column-or-measure-value-in-a-power-bi-visual-by-selection-of-the-slicer-parameter-table-pattern

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.