March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I have below data , want show running headcount for last 5 years.
Year | Headcount |
2010 | 100 |
2011 | 200 |
2012 | 300 |
2013 | 400 |
2014 | 500 |
2015 | 600 |
2016 | 700 |
2017 | 800 |
2018 | 900 |
Output :
Year | Running Headcount |
2010 | |
2011 | |
2012 | |
2013 | |
2014 | 1500 |
2015 | 2100 |
2016 | 2800 |
2017 | 3600 |
2018 | 4500 |
Solved! Go to Solution.
Hi @Chennaiah,
You can create a measure below:
Running Headcount = var LY=MAXX(ALL(Table1),'Table1'[Year])
return
IF(MAX(Table1[Year])<=LY-5,BLANK(),CALCULATE(SUM(Table1[Headcount]),FILTER(ALL(Table1),Table1[Year]<=MAX(Table1[Year]))))
Best Regards,
Qiuyun Yu
Hi @Chennaiah,
You can create a measure below:
Running Headcount = var LY=MAXX(ALL(Table1),'Table1'[Year])
return
IF(MAX(Table1[Year])<=LY-5,BLANK(),CALCULATE(SUM(Table1[Headcount]),FILTER(ALL(Table1),Table1[Year]<=MAX(Table1[Year]))))
Best Regards,
Qiuyun Yu
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
129 | |
90 | |
75 | |
58 | |
53 |
User | Count |
---|---|
200 | |
104 | |
101 | |
67 | |
55 |