cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
shankarshiva70
Helper III
Helper III

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 @shankarshiva70 ,

 

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
Community Champion
Community Champion

Hi @shankarshiva70 

 

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

 

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.

@shankarshiva70 

 

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

 

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

@shankarshiva70 

 

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-f5882...

 

Appreciate your Kudos!!

 

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 

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
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Power BI December 2021 Update_carousel 768x460.jpg

Check it Out!

Click here to read more about the December 2021 Updates!

Jan 2022 Dev Camp 768x460 copy.png

Power BI Dev Camp- January 27th, 2022

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors
Top Kudoed Authors
Users online (1,716)