This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hello I need to calculate the difference between production and Investment but only for the year In which the production starts, that means that Production > 0, using DAX like in the following table, can you help me?
| Product | Year | Production | Production - Investment | Investment |
| A | 1 | 100 | -600 | 700 |
| A | 2 | 50 | 50 | |
| A | 3 | 20 | 20 | |
| B | 1 | 0 | 0 | |
| B | 2 | 500 | -200 | |
| B | 3 | 400 | 400 | |
| C | 1 | 0 | 0 | |
| C | 2 | 100 | -600 | |
| C | 2 | 789 | 798 |
Should be something along the lines of:
Investment = IF([Production]<=0,BLANK(),[Production] - [Production Investment])
Hello, Thank You for your help, the thing is that I need to subtract the investment only in the year when the production starts (production > 0) , how can I do that?
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 6 | |
| 6 | |
| 6 | |
| 5 | |
| 4 |