cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

Distinct Count Based On Measure

I have a measure that calculates the number of days since a customer's last purchase. Now I need three measures to count the customers that fall into the following segements Active (0-30 days), Lapsed (30 - 60 days), Lost (60 days plus). Is there a DAX pattern that can do this or do I need to come at it from a different angle?

 

Thanks

Coxy

1 REPLY 1
Highlighted
Super User I
Super User I

Re: Distinct Count Based On Measure

Hi @CouncilorCox 

 

You should be able to do this using the Dynamic Sementation pattern.

 

You just have to set up a segment table, then write an appropriate segmentation measure following the pattern on the above page.

 

Please post back if you need help with the specifics for your data model.

 

Regards,

Owen


Owen Auger

Did I answer your question? Mark my post as a solution!

Connect on Twitter
Connect on LinkedIn

Helpful resources

Announcements
Upcoming Events

Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

Upcoming Events

Community Summit North America – Join Online!

Join this community-driven Power Platform digital event for unbiased support and problem-solving.

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Top Solution Authors