Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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)..
User | Count |
---|---|
97 | |
87 | |
77 | |
67 | |
63 |
User | Count |
---|---|
111 | |
96 | |
96 | |
67 | |
63 |