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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Amar-Agnihotri
Resolver I
Resolver I

Slice value is not working with IF condition in a measure

Hello All, I have a slicer and taking that value into a measure to use further in calculating another measure. Example - Slicer will have USD, GBP, EUR and trying getting sales*currenyrate based slicer selection, but som how it is not working me as expected. Measure - if(slicer='"EUR",sales*currencyrate,0), I am getting 0 as output. If i remove IF condition of slicer check, it is giving me some result instead of 0, why this happens, how can i achieve the expected result.

2 REPLIES 2
Anonymous
Not applicable

Hi @Amar-Agnihotri ,

 

Is the formula looks like below?

IF(selectedvalue(slicer)= "EUR", ... , ...)

Can you show some sample data and the formula you are using to us?

 

Best Regards,

Jay 

goncalogeraldes
Super User
Super User

Could you provide your DAX formula? The solution may be something like:

Measure =
var selected_value = SELECTEDVALUE(Column that is used in the filter)

return
if( selected_value = "EUR",
sales*currencyrate,
0)

 

Hope this answer solves your problem! If you need any additional help please tag me in your reply.
If my reply provided you with a solution, pleased mark it as a solution ✔️ or give it a kudoe 👍
Thanks!

Best regards,
Gonçalo Geraldes

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.