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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
KenHoopes
New Member

DAX count filtered from a different table?

I have a table (usertasks) populated with users and task information. I have a table created in PBI that I need information from the usertasks table summarized in. I can't seem to make it happen. Examples of what I have in the first table and what I want in the second table are shown below. I was able to get a list of the users into the new table with the following command:

 

username = DISTINCT(usertasks[username])

 

The logic for late column should be only show the count for records that are not completed, are older than today, per the distinct usernames in the table.

 

table1.PNGtable2.PNG

 

 

 

 

 

 

 

 

Any assistance is appreciated.

1 ACCEPTED SOLUTION
pawel1
Kudo Kingpin
Kudo Kingpin

will that work?

 

late = CALCULATE(
    COUNTROWS (usertasks),
        FILTER (usertasks, usertasks[status] <> "Completed" && usertasks [enddate]<TODAY()) )late.JPG

 

 

 

View solution in original post

3 REPLIES 3
pawel1
Kudo Kingpin
Kudo Kingpin

will that work?

 

late = CALCULATE(
    COUNTROWS (usertasks),
        FILTER (usertasks, usertasks[status] <> "Completed" && usertasks [enddate]<TODAY()) )late.JPG

 

 

 

In my environment, it will count based on that criteria, however, it does not appear to assign them to the username to which each late task is assigned. It simply has the same value for both the john and jane rows.

KenHoopes
New Member

Any suggestions?

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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