Hello Everyone,
I have been breaking my head over last 2 weeks looking for a probable solution to a scenario that I have. I tried ChatGPT as well but nothing worked.
So, I have a Headcount App where I show Headcount based on various dimensions like - Geo, Region, Country, Gender, Leader, Job Role, etc, etc.
Currently the Headcount is showing for the Current Month as I have selected 'This Month' option. And whenever user select a past Date, then my cards goes blank. Changing the Date Range from 'This Month' to 'All Time' does not help, as it sum up all the month Headcount and shows an inflated number, which is not expected.
What I am looking for is a Dynamic Beast Mode which will Sum the Headcount based on the date selected. If No Date is Selected then it will show the most Recent Headcount, else it will show Headcount as per the date selected.
In the below attached Excel file, I have created a simulation to show what exactly I am looking for. Please choose a date in cell E2 and it will change the numbers. Please Note the Geo is just an example I have given.
I have created a Beast Mode and it does the work that I wanted but it splits the Geos.
Beast Mode I created :
CASE
WHEN
`Date` = MAX(`Date`) OVER (PARTITION BY `Geo`)
THEN SUM(`Headcount - Actual`)
ELSE 0
END
Output I got is :
Ideal Output required :
I am in desperate need of a solution to handle this scenario.