Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Dear, I have a table with products and their prices. I want to create a new calculated column that, according to the product, adds +2 to the price.
I want to add 2 if the product is Doll:
| Product | Price | New Price |
| Trolley | 5 | 5 |
| Doll | 5 | 7 |
| Pawn | 5 | 5 |
I Tried:
measure = IF (Product [Name] = "Doll", Product [Price] + 2, Product [Price]) But it is not working.
HI @AyaneYep
If the measure you mentioned is not working then you have to change your column to whole number type as mentioned below.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 57 | |
| 34 | |
| 33 | |
| 18 | |
| 16 |
| User | Count |
|---|---|
| 67 | |
| 65 | |
| 44 | |
| 30 | |
| 28 |