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
alexjaco
Frequent Visitor

Applying a percent increase based on a Parameter Selection

Hi,

 

I would like to apply a percent increase to only the value that is selected by the user in the [select task parameter] and return all other values as they are. Here is the current formula that I have

Adjusting 1 Cycle Time (hrs) = SWITCH(TRUE(), [Selected Task] = VALUES(Sheet1[Task]), CALCULATE(SUM(Sheet1[Cycle Time (Hrs)*])*1+'Percent Increase to Cycle Time'[Percent Increase to Cycle Time Value],FILTER(Sheet1,[Selected Task])), SUMX(Sheet1,Sheet1[Cycle Time (Hrs)*]))
1 ACCEPTED SOLUTION
v-jayw-msft
Community Support
Community Support

Hi @alexjaco ,

 

After creating the independed slicer table, you could refer below formula.

Adjusting 1 Cycle Time (hrs) = IF(selectedvalue(sheet1[task]) in values('slicertable'[task]),[hrs]*(1+[percent increase]),[hrs])

 

Best Regards,

Jay

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

View solution in original post

2 REPLIES 2
v-jayw-msft
Community Support
Community Support

Hi @alexjaco ,

 

After creating the independed slicer table, you could refer below formula.

Adjusting 1 Cycle Time (hrs) = IF(selectedvalue(sheet1[task]) in values('slicertable'[task]),[hrs]*(1+[percent increase]),[hrs])

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
amitchandak
Super User
Super User

@alexjaco , this kind of formula can work well if the selected value is coming from an independent slicer. Say I select value A and I still want to display B,C,D etc along with A , then you need to use an independent slicer means create a table that is not joining with this table and use that as slicer 

 

Task = Sheet1[Task]

 

Need of an Independent Date Table:https://www.youtube.com/watch?v=44fGGmg9fHI

 

 

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.