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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

DAX to represent a "complete" user, based on if they have all tickets with a closed date

Hi, 

I have a bulk export of tickets with new hire name, task number, closed date, created date, start date, ect. 

 

I am looking to show "number of users completed by the start date". To determine this, the new hire, who has many tickets assigned to them, has to have all tickets with a "closed date". If they have any tickets without a "close date" that means they still have a ticket open which means they were "not completed by start date".

 

I imagine this would be a measure using DAX expression. Any insight?

 

Thanks

7 REPLIES 7
Anonymous
Not applicable

Hi @Anonymous ,

I have modify my answer.

Please refer to it to see if it helps you.

Create a measure.

remaining =
VAR _1 =
    CALCULATE ( DISTINCTCOUNT ( 'Table'[New Hire Name] ), ALLSELECTED ( 'Table' ) )
VAR _2 =
    CALCULATE (
        DISTINCTCOUNT ( 'Table'[RITM number] ),
        FILTER (
            ALL ( 'Table' ),
            'Table'[State] = "Open"
                && 'Table'[Closed] = BLANK ()
        )
    )
RETURN
    _1 - _2

 

vpollymsft_0-1658283799827.png

If I have misunderstood your menaing, please provide more details with your desired output.

 

Best Regards
Community Support Team _ Polly

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi @Anonymous ,

Can you provide a simple PBIX file for testing? Sensitive information can be removed in advance. What kind of expected results do you expect? You can also show it with pictures. I look forward to your response.

 

Best Regards
Community Support Team _ Polly

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Anonymous
Not applicable

  Below is a sample. I would like to say this Dragon 1 (Displayed as 1 is a count of 1 New Hire Name) has all their tasks closed therefore they are a completed new hire and their tasks are all closed and 1 person is remaining which is Dragon 2 has tasks still open. 

RequestRITM numberNumberCreatedClosedNew Hire NameStart DateState
REQ8745216RITM0380443TASK04554087/4/2022 07:02:33 AM7/11/2022 08:48:38 AMDragon 17/18/2022Closed
REQ8745216RITM0380443TASK04552506/29/2022 06:28:36 AM7/4/2022 06:10:07 AMDragon 17/13/2022Closed
REQ8546215RITM0381472TASK04552487/13/2022 10:33:33 PM Dragon 27/13/2022Open
REQ8546215RITM0381472TASK04552467/13/2022 10:33:32 PM Dragon 27/13/2022Open
REQ8546215RITM0381472TASK04552457/13/2022 10:33:32 PM Dragon 27/13/2022Open
Anonymous
Not applicable

end result.pngThis would be my end result visual

Anonymous
Not applicable

Hi @Anonymous ,

I have created a simple sample, please refer to it to see if it helps you.

Create two measures.

completed new hires =
CALCULATE (
    DISTINCTCOUNT ( 'Table'[New Hire Name] ),
    FILTER ( ALL ( 'Table' ), 'Table'[State] = "Open" )
)
remaining =
CALCULATE ( DISTINCTCOUNT ( 'Table'[New Hire Name] ), ALLSELECTED ( 'Table' ) )

vpollymsft_0-1658198445913.png

 

 

If I have misunderstood your menaing, please provide more detail with your desired output.

 

Best Regards
Community Support Team _ Polly

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Anonymous
Not applicable

The end result would be 1 completed new hire and 1 still remaining because their tasks do not have a closed date. 

 

Instead of a measure using the open states, can we use a expression based off of closed dates?

amitchandak
Super User
Super User

@Anonymous , Refer if this blog can help

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970

 

Or the attached files after signature

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 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.