Forum Discussion
fabiomanniti
4 years agoHelper III
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
| Name | Salary | Salary incremented |
| John Smith | 25000 | 20000 |
| Joe Black | 31000 | 24800 |
| Mark Johnson | 26000 | 20800 |
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
- AnonymousNot applicable
Hello,
you cannot use the column directly. Try:
Slary_incremented = SUM('WorkersSalary'[salary]) * 0.8Regards
- fabiomannitiHelper III
No, this doesn't work, I don't understand what number returns but it is definitely wrong
- AnonymousNot applicable
I tried it with your table:
Name Salary
John Smith 25000 Joe Black 31000 Mark Johnson 26000 Make sure that your Data Type of the Salary column is not set to text.
Regards