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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Uthraa92
Helper I
Helper I

Need to apply different percentage value to different slicer selections dynamically

Hi all,
I need help to create the below logic in PowerBI using DAX query.
I have these main fields - Department, Employee Number, Employee Name and amount field for Salary (as shown below - Table A).
Table A:

Uthraa92_0-1734519082153.png

 


I have separate slicers for Department, Employee Number and Employee Name. I also have a parameter set to get the Hike % from the user. The main challenge is to get different hike % for different combinations applied in the filters (as shown below) and get everything in a table visual.

Uthraa92_1-1734519104226.png

 


The final step is to calculate the revised salary based on the Hike % provided for each employee (as shown below) in another visual.

Uthraa92_2-1734519121196.png


Wanted to check if this ask is doable in first place (i.e getting Hike % as dynamic input for different filters applied). Would really appreciate if there is some approach to get these Hike % as use input instead of hardcording it in the backend. Thanks a mil!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @Uthraa92 

 

You can try the following methods.

Revised Salary = CALCULATE(SUM('Table'[Salary]))*MAX('Hike%'[Hile%])

vzhangtinmsft_0-1735027582684.pngvzhangtinmsft_1-1735027603911.png

Is this the result you expected?

 

Best Regards,

Community Support Team _Charlotte

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

6 REPLIES 6
mickey64
Super User
Super User

For your reference.

 

Step 0: I use these data.

mickey64_0-1734526237166.png

 

mickey64_1-1734526262197.png

 

mickey64_2-1734526289319.png

 

Step 1: I make a measure and make a matrix.

Revised Salary = SUMX('Table A','Table A'[Salary]*RELATED('Hike Table'[Hike %]))
mickey64_3-1734526331905.pngmickey64_4-1734526518506.png

 

 

Thanks a mil! @mickey64 

 

Is there any way I can give the provision to the user to provide the Hike % on PBI itself instead of creating a list in the excel ? That is the main challenge at my end.

I don't know what rules are used to determine "Hike %," but as an example I have provided a report and a table of "Hike %" based on evaluation results.
What rules do you want to use to determine "Hike %"?
If you want to calculate "Hike %" based on some rules, you can add a calculated column with an "IF" statement.

There are no fixed rules for now. The user may consider one Hike % for each department or they can unselect few employees in that department and only for those and the remaining employees with another Hike % so it is completely dynamic for now.

 

Thanks!

Anonymous
Not applicable

Hi, @Uthraa92 

 

You can try the following methods.

Revised Salary = CALCULATE(SUM('Table'[Salary]))*MAX('Hike%'[Hile%])

vzhangtinmsft_0-1735027582684.pngvzhangtinmsft_1-1735027603911.png

Is this the result you expected?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks @Anonymous 

 

Sorry for the late response.

 

Yes I needed that Revised Salary to be calculated based on different selections but as shown in your example, I need the first table and second table together. That is, the final table should have all the Employees from all dept with the applied Hike%.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors