Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
Please refer to the picture i have attached.
All values in the "Quantity" column are positive however i need some to be negative based on the "Type" column.
Eg. If the "Type" column shows "GR" return the same value in the "Quantity" column, but negative.
Does anyone know how this can be done? Thank you in advance!
Solved! Go to Solution.
Hi @Rag_G ,
For your logic, you could create a calculated column with the formula below.
Column = if('Table'[type]="GR",[Quantity],-1*[Quantity])
Here is my test output based on your data sample.
Best Regards,
Cherry
Hi @Rag_G ,
For your logic, you could create a calculated column with the formula below.
Column = if('Table'[type]="GR",[Quantity],-1*[Quantity])
Here is my test output based on your data sample.
Best Regards,
Cherry
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
94 | |
80 | |
66 | |
58 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |