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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
avulasandeep
Helper III
Helper III

NEW CUSTOMER AND REPEATED CUSTOMER IN POWERBI

Hi Everyone , 

 

Here i have a question for the new customers and repeat customers by date.

 

Suppose if the customer has login first time he belongs in New Customer and if the Customer has repeated again he comes in Repeated Customers.

 

here is the screenshot :

 

 

July_7th C.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

here in above pic   Count of New Users : 6
                               Count of Repeated Users : 9

i need this new and repeated users using dax .

 

Suppose if I select the date from  01-01-2018 to 10-01-2018 :

Output : New Customer= 5  and Repeated Customer= 5

 

Actually  i tried with New & Returning Customers from link below,

http://community.powerbi.com/t5/Quick-Measures-Gallery/New-and-Returning-Customers/td-p/168297

but i am not getting the proper result from above link.

 i need count of new customers and repeated customers for the selected date. 

 

Hope will get the solution soon.

 

Thanks 

sandeep

2 ACCEPTED SOLUTIONS
Zubair_Muhammad
Community Champion
Community Champion

@avulasandeep

 

You could use this calculated column

 

New customer =
VAR mycount =
    CALCULATE (
        COUNTROWS ( Table1 ),
        FILTER (
            ALLEXCEPT ( Table1, Table1[cust id] ),
            Table1[Date] < EARLIER ( Table1[Date] )
        )
    )
RETURN
    IF ( mycount = 0, "Yes" )

Regards
Zubair

Please try my custom visuals

View solution in original post

@avulasandeep

 

and this one for repeat customers

 

Repeat customer =
VAR mycount =
    CALCULATE (
        COUNTROWS ( Table1 ),
        FILTER (
            ALLEXCEPT ( Table1, Table1[cust id] ),
            Table1[Date] < EARLIER ( Table1[Date] )
        )
    )
RETURN
    IF ( mycount > 0, "Yes" )

Regards
Zubair

Please try my custom visuals

View solution in original post

4 REPLIES 4
Omonye
Frequent Visitor

@Zubair_Muhammad  how do i calculate the distinct count for 1st time/recurring

customer

Zubair_Muhammad
Community Champion
Community Champion

@avulasandeep

 

You could use this calculated column

 

New customer =
VAR mycount =
    CALCULATE (
        COUNTROWS ( Table1 ),
        FILTER (
            ALLEXCEPT ( Table1, Table1[cust id] ),
            Table1[Date] < EARLIER ( Table1[Date] )
        )
    )
RETURN
    IF ( mycount = 0, "Yes" )

Regards
Zubair

Please try my custom visuals

@avulasandeep

 

and this one for repeat customers

 

Repeat customer =
VAR mycount =
    CALCULATE (
        COUNTROWS ( Table1 ),
        FILTER (
            ALLEXCEPT ( Table1, Table1[cust id] ),
            Table1[Date] < EARLIER ( Table1[Date] )
        )
    )
RETURN
    IF ( mycount > 0, "Yes" )

Regards
Zubair

Please try my custom visuals
Anonymous
Not applicable

How about calculate the lost customer?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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