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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Augustas-ase
Helper II
Helper II

How to get result 1 ? not 3

Hello, my formula is: 

Dif.values. = COUNTROWS(
    FILTER(
        SALES,
        SALES[client type] = EARLIER(SALES[client type])
            && SALES[OperacijosId] = EARLIER(SALES[OperacijosId])
            && SALES[Data] = EARLIER(SALES[Data])
    )
) and i get result 3 but i want to get result 1 because client type, operacijosid and Data values ​​are same 
4 REPLIES 4
Anonymous
Not applicable

Hi @Augustas-ase ,

Please try below dax formula:

Dif.values. =
COUNTROWS (
    FILTER (
        ALL ( SALES ),
        SALES[client type] = EARLIER ( SALES[client type] )
            && SALES[OperacijosId] = EARLIER ( SALES[OperacijosId] )
            && SALES[Data] = EARLIER ( SALES[Data] )
    )
)

If it does not work, please provide a screenshot of the results you are expecting and desensitized example data, it is helpful for me to test.

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Augustas1991_0-1688370996855.png

the answer should be 1, I'm using three filters here, but each filter has the same information

Anonymous
Not applicable

Hi @Augustas-ase ,

Could you please provide the desensitized example data? it is very helpful for me to test.

 

Best regards,
Community Support Team_Binbin Yu

Augustas-ase
Helper II
Helper II

who can help?

Helpful resources

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

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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