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
CuriousMonkey
Regular Visitor

Count distinct customers by highest segment / last date

Hello,

 

I am looking for a measure to use in a table showing all shopping segments and the distinct number of relevant customers.

CuriousMonkey_2-1681719764079.png

 

There are << 3 >> different customers with multiple visits but in my final table I just want to see each counted once - shown in the highest ShoppingSegment (is determined by the latest ShoppingDate).

 

I have been working with 

 

CALCULATE(

    DISTINCTCOUNT('table'[Customer]),

    FILTER ( 'table', 'table'[ShoppingDate]  = LASTDATE ( 'table'[ShoppingDate] ) )

)

 

but when matching my result with the segments table I just receive the number of distinct customers for the very latest ShoppingDate within the whole table but not just for each single Customer...

 

Can you help me, please 🙂 ?

Thanks a lot!

CuriousMonkey

 

 

0 REPLIES 0

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.