Hope you all are doing well.
Here is my data sample
I am calculating active headcount by month by this DAX code
ACTIVE HEAD COUNT BY MONTH =
VAR currentmonth = MAX('CALENDAR'[MONTH])
CALCULATE(DISTINCTCOUNT(Sheet1[EID]),FILTER(Sheet1,Sheet1[Hire Month]<=currentmonth && OR(ISBLANK(Sheet1[Resign Month]),Sheet1[Resign Month]>currentmonth)))
I am getting correct no by when i am putting Calendar[Month] column in the chart/table.
I want to calculate this by Year, Quarter, Month and Day so that i can show it by Date Hierachy (year - drill down - Quarter - drill down - Month - drill down - day) in same chart.
Can you guys help me achieve this?
Solved! Go to Solution.
My proposed solution will work if you want to drill down only up to the Month level. If you wish to go upto the Day level, my solution will be inefficient. Would you be OK in drilling pnly up to the month level?
I believe Amit has already anwered your question.
Take a look at the September 2023 Power BI update to learn more.
Join Microsoft Reactor and learn from developers.
Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!
Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.