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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.