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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Joey12
New Member

PBI DAX - Multiply the selectedvalue from a slicer with another selectedvalue from another slicer

Hi, 

 

I have created a below measures:

1. What if A = SWITCH(TRUE(),SELECTEDVALUE(LWI1_WhatIf[A])=0.001,SUM(AAA[$]),SUM(AAA[$])*SUM(LWI1_WhatIf[A])+SUM(AAA[$]))

 

2. What if B = SWITCH(TRUE(),SELECTEDVALUE(LWI1_WhatIf[B])=0.001,SUM(BBB[$]),SUM(BBB[$])*SUM(LWI1_WhatIf[B])+SUM(BBB[$]))

 

3. Expected = Divide(What if A,What if B)

 

The first and second DAX is working after remove interaction but the third DAX isn't responding to the output (i.e. value after select WhatIfA or WhatIf B. 

 

Please help.

1 REPLY 1
amitchandak
Super User
Super User

@Joey12 , Change like

what if A=

SWITCH(TRUE(),SELECTEDVALUE(LWI1_WhatIf[A])=0.001,SUM(AAA[$]),(SUM(AAA[$])*SELECTEDVALUE(LWI1_WhatIf[A]))+SUM(AAA[$]))

 

What if B = SWITCH(TRUE(),SELECTEDVALUE(LWI1_WhatIf[B])=0.001,SUM(BBB[$]),SUM(BBB[$])*SELECTEDVALUE(LWI1_WhatIf[B])+SUM(BBB[$]))

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors