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.
Hello,
I have the following data:
Project | GATE | NNS | NNS YEAR |
DN1 | stage 1 | 10 | 2020 |
DN2 | stage 1 | 20 | 2019 |
DN3 | stage 1 | 30 | 2020 |
DN1 | stage 2 | 15 | 2020 |
DN2 | stage 2 | 25 | 2019 |
DN3 | stage 2 | 35 | 2020 |
DN1 | stage 3 | 40 | 2020 |
I need to Sum NNS per Year, only once per project - for the latest stage of the project.
So the result should be:
output | NNS SUM | NNS SUM |
2019 | =25 | 25 |
2020 | =40+35 | 75 |
Could you please help?
thank you
Solved! Go to Solution.
@ShiMaria , try like
sumx(summarize(Table, Table[YEAR], Table[Project],"_1",LASTNONBLANKVALUE(Table[GATE],sum(table[NNS]))),[_1])
Thank you, it seems to work.
Can you please explain the logic? (my apology, I'm not so bright to figure it out... I just copied your formula and it worked)..
@ShiMaria , try like
sumx(summarize(Table, Table[YEAR], Table[Project],"_1",LASTNONBLANKVALUE(Table[GATE],sum(table[NNS]))),[_1])
Thank you, it seems to work.
Can you please explain the logic? (my apology, I'm not so bright to figure it out... I just copied your formula and it worked)..
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 |
---|---|
104 | |
101 | |
79 | |
72 | |
64 |
User | Count |
---|---|
142 | |
108 | |
101 | |
81 | |
74 |