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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Using measure in slicers

Hi everyone,

 

I am new to Power BI, and thanks to the community, I have created a measure to covert two currencies with a fixed rate. Solved: Fixed rate currency conversion to display on matri... - Microsoft Power BI Community

 

The new question is that after creating the USD meaure, I want to create a filter for my table to choose the amount of USD spent by using a slicer with "between" function. But Power BI does not allow me to use the Amount USD measure as the value of the slicer.

Is there any solution for this kind of appliction? Thank you very much 

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

Hi @Anonymous ,

Measures are not supported in slicer, but you can use it in the visual filter.

vkalyjmsft_0-1639385680722.png

Or you can create a calculate column istead of a measure.

Amount USD column = 'Table'[Amount] * IF ( 'Table'[Currency] = "HKD", 7.8, 1 ) 

vkalyjmsft_1-1639385815695.png

I attach my sample below for reference.

Best Regards,
Community Support Team _ kalyj

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

3 REPLIES 3
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

Measures are not supported in slicer, but you can use it in the visual filter.

vkalyjmsft_0-1639385680722.png

Or you can create a calculate column istead of a measure.

Amount USD column = 'Table'[Amount] * IF ( 'Table'[Currency] = "HKD", 7.8, 1 ) 

vkalyjmsft_1-1639385815695.png

I attach my sample below for reference.

Best Regards,
Community Support Team _ kalyj

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

 

amitchandak
Super User
Super User

@Anonymous , Assume you want to shift USD amount or local amount. You need to use an independent table and measure the slicer

 

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

 

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
Anonymous
Not applicable

Hi @amitchandak, in this case, I only want the slicer to have the USD value. Thanks

Helpful resources

Announcements
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!

November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.