Forum Discussion

fabiomanniti's avatar
fabiomanniti
Helper III
4 years ago

How to create a column with incremented values

Hello,

I have a table called WorkersSalary and a field called salary and another field called name.

I want to plot another field wich is Salary incremented = salary x 0.8

 

NameSalarySalary incremented
John Smith2500020000
Joe Black3100024800
Mark Johnson2600020800

 

I tried to add a measure calling it salary_incremented = 'WorkersSalary'[salary]*0.8

but it returns an error

Could you please help me? Thank you

6 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hello,

     

    you cannot use the column directly. Try:
    Slary_incremented = SUM('WorkersSalary'[salary]) * 0.8

     

    Regards

    • fabiomanniti's avatar
      fabiomanniti
      Helper III

      No, this doesn't work, I don't understand what number returns but it is definitely wrong

      • Anonymous's avatar
        Anonymous
        Not applicable

        I tried it with your table:

         

        Name

        Salary

        John Smith25000
        Joe Black31000
        Mark Johnson26000

         

         

         

        Make sure that your Data Type of the Salary column is not set to text.

         

        Regards