Forum Discussion
Anonymous
6 years agoNot applicable
Progression calculation
Hello everyone! The Brazilian government has adopted a progressive table for the collection of social security contributions. The rates are as follows. Contribution Salary Rate Until R...
- 6 years ago
Anonymous - You basically need to implement a WHILE loop in DAX, here is how: https://community.powerbi.com/t5/Quick-Measures-Gallery/While-Loop/m-p/637535#M320
- Anonymous6 years ago
HI Anonymous,
Please split your contribution salary to two fields based on 'to' character and remove others not used text strings, then you can write a measure formula to calculate on them.
Measure = VAR summary = SUMMARIZE ( 'Table', [Contribution Salary From], [Contribution Salary To], [Rate], "Result", ( [Contribution Salary To] - [Contribution Salary From] ) * [rate] ) RETURN SUMX ( summary, [Result] )Regards,
Xiaoxin Sheng
- 6 years ago
Hi,
You may refer to my solution - Compute transaction fee based on a tiered pricing model.
Hope this helps.
Ashish_Mathur
6 years agoSuper User
Hi,
You may refer to my solution - Compute transaction fee based on a tiered pricing model.
Hope this helps.