Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
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
| User | Count |
|---|---|
| 53 | |
| 40 | |
| 31 | |
| 24 | |
| 22 |
| User | Count |
|---|---|
| 134 | |
| 111 | |
| 57 | |
| 44 | |
| 38 |