Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello,
New to BI.
I am looking to count September in a month column.
Can work out the count part but not the filter, can you help please?
Stopped at the below.
Absence Rate = CALCULATE(Count('DB Headcount'[Month],FILTER('DB Headcount') = September
Ross
Solved! Go to Solution.
So the answer that i posted before will help you create the table.
To provide more details simply create a table and Drag and Drop the Month as Dimension.
Then create a new measure using the formula that i have put in the previous message.
Add the measure to the table
@rosscortb Sample data will be really helpful. I hope you are looking for below DAX.
Absence Rate = COUNTROWS(FILTER('DB Headcount','DB Headcount'[Month] = "September"))
Proud to be a PBI Community Champion
Thanks, one other question, how do it get to return the count per rows for each month please?
I thought i could just change the 'Septemer' to [month] but its giving me the overall total count.
Headcount = COUNTROWS(FILTER('DB Headcount','DB Headcount'[Month] = [Month]))
If i understand correctly you want to count the rows per Month. Is this correct?
Why dont you create a table with Month as the Dimension and the Measure will be the following:
Measure = Count('DB Headcount'[Month])
Also if the previous formula posted works ok as well, you can mark it as another correct answer. This will help other users
I have a headcount table with all employees for April, All employees for May etc
And I was creating a column to tell me that there is 2300 employees in April and 2400 in May etc
P.S I have a month table also
So the answer that i posted before will help you create the table.
To provide more details simply create a table and Drag and Drop the Month as Dimension.
Then create a new measure using the formula that i have put in the previous message.
Add the measure to the table
Thats worked. You're the man. 🙂
Alternatively you can use the following formula without using the FILTER word
Absence Rate = CALCULATE(Count('DB Headcount'[Month]),'DB Headcount'[Month] = "September")
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
124 | |
79 | |
50 | |
38 | |
38 |
User | Count |
---|---|
196 | |
80 | |
70 | |
51 | |
42 |