Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

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...
  • Anonymous's avatar
    Anonymous
    6 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