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
Hi Team,
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])
VAR RESULT=
CALCULATE(DISTINCTCOUNT(Sheet1[EID]),FILTER(Sheet1,Sheet1[Hire Month]<=currentmonth && OR(ISBLANK(Sheet1[Resign Month]),Sheet1[Resign Month]>currentmonth)))
Return
RESULT
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?
Thanks
Solved! Go to Solution.
@Anonymous , Refer to my blog on the same
Hi,
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?
Hi Ashish,
Thank you for replying.
I am ok with drilling only up to month level.
Thanks
Hi,
I believe Amit has already anwered your question.
Yes,
Thank you for your time 🙂
@Anonymous , Refer to my blog on the same
Hi @amitchandak ,
I went through the blog and looks like it is working for me.
Thank you..
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 |