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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

DAX help- Unique customer count basis on sales

Hello Experts,

 Need help on this. 

I have compare count unique customers based on their sales >0 after launch months onwards as summary have given below.

 

shankarshiva70_0-1634446402057.png

 

@Tanushree_Kapse @VahidDM @GregM @amitchandak - Please help me on this.

Thanks a ton in advance.

8 REPLIES 8
Icey
Community Support
Community Support

Hi @Anonymous ,

 

Please check my reply in your another post: Re: Need help on custom report - Microsoft Power BI Community.

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

VahidDM
Super User
Super User

Hi @Anonymous 

 

Can you add more details about the calculation? how did you create the result table in Excel? can you share the Excel formula?

Appreciate your Kudos!!

 

Anonymous
Not applicable

Hi,

Thanks for reply.

Actually , I have to count distinct of customer code from launch month to last months but we have to check sales >0 every month at customer level total sales

For example.

customore abc is purchased in launch month jan21 but not purchased in feb21 and again purchased in last month- hence then unique count will be 1 but it purchased 2 times.

Summary will be like abc customer is in north zone then

Zone    launch month purchase   2 times purchase   3 times purchase    >3 times

North    0                                      1                            0                                  0

 

I Hope it will help

@VahidDM @Tanushree_Kapse @amitchandak @Greg_Deckler 

Thanks.

@Anonymous 

 

If abc is purchased in launch month jan21 why in the result table launch month purchase is Zero?

Zone    launch month purchase   2 times purchase   3 times purchase    >3 times

North    0                                      1                            0                                  0

 

Appreciate your Kudos!!

 

Anonymous
Not applicable

Sorry type error, It should count 1 in launch month as well as in 2 times purchase column.

Thanks.

Zone    launch month purchase   2 times purchase   3 times purchase    >3 times

North    1                                      1                            0                                  0

@Anonymous 

 

Can you change your data structure? Unpivot all month columns.

https://support.microsoft.com/en-us/office/unpivot-columns-power-query-0f7bad4b-9ea1-49c1-9d95-f588221c7098

 

Appreciate your Kudos!!

 

Anonymous
Not applicable

Hi,

I have done 90% of work by help of summarize funtion.

but one point on which I am stucking is that for example

CustomerSalesMonth 
abc12202Jan-21 
abc21043Jan-21 
abc31576Jan-21 
abc10Feb-21 
abc21211Feb-21 
abc32989Feb-21 
abc11209Mar-21 
abc20Mar-21 
abc32036Mar-21 
abc41279Mar-21 
abc12258Apr-21 
abc20Apr-21 
abc3320Apr-21 
abc42050Apr-21 
    
Summary will be   
 Retention customer Count
MeasureFeb-21Mar-21Apr-21
Unique Cust count223

** Retention means customers who have purchased at leat 1 time in any previous month.

I am not able to compare the customer wise sales in all previous months to get this result.

Please help me on this.

Thanks

@amitchandak @Greg_Deckler @Tanushree_Kapse @AlexisOlson @Jihwan_Kim @PBICommunity 

Anonymous
Not applicable

Hi,

Data is in row level (inpivot). I had given the sample data set which i use in excel for working.

 

Thanks.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.