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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

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