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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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