Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I am trying to count the number of "Other" leaves.
This returns 0, as we can't count on a multiple filter, any ideas as to how to resolve in a measure?
Solved! Go to Solution.
@TeamCanada26__ Perhaps try:
Measure =
VAR __Table = FILTER('Demographic',[Leave Type] IN {
"Family Related and Personal Leave without Pay > Care and Nurturing LWOP",
"Family Related and Personal Leave without Pay > Maternity LWOP",
"Family Related and Personal Leave without Pay > Maternity LWOP",
"Family Related and Personal Leave without Pay > Parental LWOP",
"Family Related and Personal Leave without Pay > Parental LWOP",
"Family Related and Personal Leave without Pay > Relocation of Spouse LWOP",
"Leave without Pay > Sick LWOP",
"Other Leave without Pay > Educational LWOP",
"Other Leave without Pay > Long-Term Disability LWOP",
"Other Leave without Pay > Other LWOP",
"Other Leave without Pay > Self Funded LWOP",
"Other Leave without Pay > Suspension/Disciplinary Action LWOP",
"Other Leave without Pay > Union Business LWOP"
}
)
RETURN
COUNTAX(__Table,[Leave Type])
Thank you!
@TeamCanada26__ Perhaps try:
Measure =
VAR __Table = FILTER('Demographic',[Leave Type] IN {
"Family Related and Personal Leave without Pay > Care and Nurturing LWOP",
"Family Related and Personal Leave without Pay > Maternity LWOP",
"Family Related and Personal Leave without Pay > Maternity LWOP",
"Family Related and Personal Leave without Pay > Parental LWOP",
"Family Related and Personal Leave without Pay > Parental LWOP",
"Family Related and Personal Leave without Pay > Relocation of Spouse LWOP",
"Leave without Pay > Sick LWOP",
"Other Leave without Pay > Educational LWOP",
"Other Leave without Pay > Long-Term Disability LWOP",
"Other Leave without Pay > Other LWOP",
"Other Leave without Pay > Self Funded LWOP",
"Other Leave without Pay > Suspension/Disciplinary Action LWOP",
"Other Leave without Pay > Union Business LWOP"
}
)
RETURN
COUNTAX(__Table,[Leave Type])
User | Count |
---|---|
14 | |
9 | |
7 | |
7 | |
6 |
User | Count |
---|---|
21 | |
11 | |
10 | |
10 | |
8 |