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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
lukedaly01
Regular Visitor

What If Slicer?

I have a set of data where I want the quantities to decrement using a "What If" scenario

 

lukedaly01_0-1629036706167.png

I want to see how the quantities of part numbers would adjust down if a product was built, thereby consuming certain part numbers by specific quantities, ie 106-562-497 would decrease by 2, 106-887-101 would decrease by 1 & 106-887-198 would decrease by 1.

 

Can a Slicer be created to adjust values dependant on a certain number of set part numbers being consumed?

 

Any help  / suggestions would be appreciated.

1 REPLY 1
MFelix
Super User
Super User

Hi @lukedaly01 ,

 

This is possible if you set some specific values to those calculations, for example if you have the values of the SKU 

106-562-497 has you refer this would need to do something similar to this

 

would decrease by 2, 106-887-101 would decrease by 1 & 106-887-198 would decrease by 1.

 

Increase Decrease = SWITCH(SELECTEDVALUE(Table[Sku]),
"106-562-497", [What if paramater] * -2,
"106-887-101", [What if paramater] * -1,
"106-887-198", [What if paramater] * -1)

This would be just an example, best option is instead of having this values in a measure is to have a table with the relationship between the skus and the increase decrease of each unit selected in the what if parameter and then make a multiplication of the value of the what if by that specific column.


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



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!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.