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
android1
Post Patron
Post Patron

Applying What if Parameter only to certain value

Hi,

 

I have a table with Hours & Wages Column.

 

I've applied a What If parameter: What if  = [Wages] * [Wage Increase Value]

 

I only want to apply this What if to Hours = .5 but i still want to show total of all other hours also.

 

2018-08-13 18_27_50-Book2 - Microsoft Excel.png

 

1 ACCEPTED SOLUTION

@android1,

 

Just add IF Function and SELECTEDVALUE Function inside.

Community Support Team _ Sam Zha
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

4 REPLIES 4
MFelix
Super User
Super User

 

Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



MFelix
Super User
Super User

Hi @android1,

 

You need to create a measure with a SUMX something like this:

 

What if  = SUMX ( Table; [Wages] * [Wage Increase Value])

This will give you the sum of the multiplication values line by line.

 

Regards,

MFelix


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



Hi @MFelix,

 

Bit confused by this. I don't see where this is only applying to Hours  = .5 ?

@android1,

 

Just add IF Function and SELECTEDVALUE Function inside.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.