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.
Hi All,
The following DAX measure is bringin back blank when I added it to a table visualisation.
Leaver2 = CALCULATE(COUNTROWS(Person),FILTER(VALUES(Person[EmploymentStatus]),Person[EmploymentStauts]="Inactive"))
I've baccically created a cusom column called EmploymentStatus which uses an if statement that says in the Termiantion Daste is null then the value should be "Active" otherwise "Inactive" and I've inlcuded this in my measure above to get a count of leavers each month .
Can anyone see what I've done that it brings back no values at all?
Solved! Go to Solution.
Hey @GJ217 ,
First of all, I recommend that you create your Status column on Power Query (you can use the Conditional Column).
After that, the mesaure to count the values of the Inactive can be like:
count_inactives = CALCULATE(COUNTROWS(Manager),FILTER(Manager, Manager[Status] = "Inactive"))
*** manager is my table name
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Regards,
Marcel Magalhaes
Regards,
Marcel Magalhães
Microsoft Power BI Official Partner
MCT | Certified PL-300 Power BI
Hey @GJ217
It was a pleasure to help!
Regards,
Marcel
Regards,
Marcel Magalhães
Microsoft Power BI Official Partner
MCT | Certified PL-300 Power BI
Hi @GJ217 ,
Try this measure
Leaver2 =
COUNTROWS ( FILTER ( Person, Person[EmploymentStauts] = "Inactive" ) )
If you want to remove context filters from columns and rows in the current query, add the ALL()/ ALLSELECTED().
Leaver2 =
COUNTROWS (
FILTER ( ALLSELECTED ( Person ), Person[EmploymentStauts] = "Inactive" )
)
Best Regards,
ShundaSteph
Hey @GJ217 ,
First of all, I recommend that you create your Status column on Power Query (you can use the Conditional Column).
After that, the mesaure to count the values of the Inactive can be like:
count_inactives = CALCULATE(COUNTROWS(Manager),FILTER(Manager, Manager[Status] = "Inactive"))
*** manager is my table name
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Regards,
Marcel Magalhaes
Regards,
Marcel Magalhães
Microsoft Power BI Official Partner
MCT | Certified PL-300 Power BI
User | Count |
---|---|
119 | |
78 | |
59 | |
52 | |
48 |
User | Count |
---|---|
171 | |
118 | |
60 | |
59 | |
54 |