Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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?
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
10 | |
10 | |
10 | |
10 |
User | Count |
---|---|
19 | |
14 | |
13 | |
11 | |
8 |