Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Alpha_Wolf01
Frequent Visitor

Counting Certain text and the result reflects as per the Filter applied in Slicer

After getting the solution from my previous post

 

https://community.powerbi.com/t5/Desktop/Compare-values-from-columns-in-two-tables-identify-those-th...

 

 

Now Iam stuck at last step, now i need to count the word "Absent" from the Table and the count does reflect the new value whenever i choose a slicer filter as example below:

 

Alpha_Wolf01_0-1617127848481.png

 

 

The Problem is

I have a table where its a result from a crossjoin between two other tables, i have linked above the solution that i was provided, now this table does have a date column name (Calender Date) say this column have a complete month calender and their is another date column (Check_IN Date) where the date is registered for the user when he is at Office only.

 

what i need is to count the days where the employee is Absent, and the value can change as per the filter i apply as example if choose Employee A with the Month March 2021, then the result will be Counting the word "Absent" for the applied two filters, some Screen Shots below i hope that it might help.

Alpha_Wolf01_1-1617128337972.png

 

 

 

Alpha_Wolf01_4-1617128750926.png

 

 

 

1 ACCEPTED SOLUTION
Alpha_Wolf01
Frequent Visitor

I have Solved this issue by using the below formula:

 

#Count_Absent =
COUNTROWS(
FILTER(
GROUPBY(
'Table 3','Table 3'[Date_Customize],'Table 3'[Name-Database],'Table 3'[WeekEnd - WeekDay]),[Onsite-Absent Status]="Absent" && [WeekEnd - WeekDay]="Working Day"))

View solution in original post

1 REPLY 1
Alpha_Wolf01
Frequent Visitor

I have Solved this issue by using the below formula:

 

#Count_Absent =
COUNTROWS(
FILTER(
GROUPBY(
'Table 3','Table 3'[Date_Customize],'Table 3'[Name-Database],'Table 3'[WeekEnd - WeekDay]),[Onsite-Absent Status]="Absent" && [WeekEnd - WeekDay]="Working Day"))

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.