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

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

Reply
spandy34
Responsive Resident
Responsive Resident

DAX - Count of Fields with Same Data

Hi

 

I wondered if you could help.  I am wanting to calculate the SSRefs where the Planned Entry Time equals Delivered Entry time AND Planned Exist time equals Delivered Exit time .  The fields are in time format.

 

I did the code below but got an error saying the following.  Please can someone help.

 

 

 

spandy34_0-1690210615417.png

 

Planned equals delivered exact =

CALCULATE(
COUNT('Procurement_Main_Data'[SSRef]),
'Procurement_Main_Data'[PlannedEntryTime]='Procurement_Main_Data'[DeliveredEntryTime] &
'Procurement_Main_Data'[PlannedExitTime]='Procurement_Main_Data'[DeliveredExitTime])

 

 

 

@tamerj1 @mlsx4 @pankaj_lp @Greg_Deckler 

1 ACCEPTED SOLUTION

spandy34_0-1690215654970.png

 

I think the following has worked:-

 

z_Exact Match =

COUNTROWS(
    FILTER(
        'Procurement_Main_Data',
        'Procurement_Main_Data'[PlannedEntryTime]= 'Procurement_Main_Data'[DeliveredEntryTime] &&
        'Procurement_Main_Data'[PlannedExitTime] = 'Procurement_Main_Data'[DeliveredExitTime])
    )
 

 

View solution in original post

2 REPLIES 2
Pragati11
Super User
Super User

HI @spandy34 ,

 

Can you please share the screenshots for all the four columns that they have a time datatype from Power BI?

 

Pragati11_0-1690211289963.png

 

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

spandy34_0-1690215654970.png

 

I think the following has worked:-

 

z_Exact Match =

COUNTROWS(
    FILTER(
        'Procurement_Main_Data',
        'Procurement_Main_Data'[PlannedEntryTime]= 'Procurement_Main_Data'[DeliveredEntryTime] &&
        'Procurement_Main_Data'[PlannedExitTime] = 'Procurement_Main_Data'[DeliveredExitTime])
    )
 

 

Helpful resources

Announcements
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.

Top Solution Authors
Top Kudoed Authors