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
GA1993
Helper II
Helper II

Translate EXCEL to DAX Function

Could someone please help me understand and translate an Excel formula to DAX solution?

 

=COUNTIFS($D:$D,"",$A:$A,"<>",$B:$B,"<>",$C:$C,"")

 

GA1993_0-1631481065559.png

 

I tried doing it in bits to understand and this is what I got...

=COUNTIF($D:$D,"") = 1048573 (or the cells from excel that are blank)

=COUNTIF($A:$A,"<>") = 4

=COUNTIF($B:$B,"<>") = 4

=COUNTIF($C:$C,"") = 1048571 (or the cells from excel that are blank)

 

Now to put it together =COUNTIFS($D:$D,"",$A:$A,"<>",$B:$B,"<>",$C:$C,""), the result from my understanding would be 2 since it already has trimmed down the statements... (but the result was 0!)

 

I translated this to DAX in the hopes that I could get a sense of it, but the result was blank..

 
How do I translate filtering those that have no duplicates of values for Cells A and B because I assume this is where the mistake is?

 

Approval = CALCULATE (
    COUNTROWS ('Excel'),
        FILTER (
            'Excel',
                'Excel (A).[Date] <> 'Excel (A).[Date]
                && 'Excel (B).[Date] <> 'Excel (B).[Date]
                && 'Excel (C) = Blank()
            )
    )

 

 

 

2 REPLIES 2
wdx223_Daniel
Super User
Super User

COUNTROWS (
        FILTER (
            'Excel',
                NOT(ISBLANK('Excel'[A]))
                &&NOT(ISBLANK('Excel'[B]))
                && ISBLANK('Excel'[C])
                && ISBLANK('Excel'[D])
            ))

I understand C & D as "ISBLANK", but I am not sure with A & B as they are looking for the Distinct values. I am just not sure how to translate this to a DAX function..

Helpful resources

Announcements
November Fabric Update Carousel

Fabric Monthly Update - November 2025

Check out the November 2025 Fabric update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Users online (25)