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
beaoliv123-_
Helper I
Helper I

New and Lost Users

Hi everyone,

 

I would like to ask you if you can help me calculate New Users and Lost Users.

 

I have a table will all user id from the beggining until now.

I want to know, for example, in the last year/month/week/day, how many user id was new? I mean, how many user id was never found in the table until now, according to my time specification.

 

Also, I would like to calculate, how many stopped to appear. I want to consider a lost user someone who hasn't visited me in 3 months. I also want to calculate how many do not visit me in 2 months, and 1 month.

 

I want to be able to see how many of them and I also want to be able to see which user id is considered lost / new.

 

I hope I was clear,

 

Thank you so much  

1 ACCEPTED SOLUTION
v-jayw-msft
Community Support
Community Support

Hi @beaoliv123-_ ,

 

Create an independent date slicer table.

Use VALUES() function to get a list of IDs in selected date period.

Then you could use IDs in table to compare with this list.

For example to count the IDs not in selected period.

countID =
VAR _list =
    CALCULATETABLE (
        VALUES ( 'table'[ID] ),
        FILTER (
            ALLSELECTED ( 'table' ),
            'table'[date] >= MIN ( slicer[date] )
                && 'table'[date] <= MAX ( slicer[date] )
        )
    )
RETURN
    CALCULATE (
        DISTINCTCOUNT ( 'table'[ID] ),
        FILTER ( ALLSELECTED ( 'table' ), NOT ( 'table'[ID] IN _list ) )
    )

If you need detailed formula, please share some sample data and expected result.

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

2 REPLIES 2
v-jayw-msft
Community Support
Community Support

Hi @beaoliv123-_ ,

 

Create an independent date slicer table.

Use VALUES() function to get a list of IDs in selected date period.

Then you could use IDs in table to compare with this list.

For example to count the IDs not in selected period.

countID =
VAR _list =
    CALCULATETABLE (
        VALUES ( 'table'[ID] ),
        FILTER (
            ALLSELECTED ( 'table' ),
            'table'[date] >= MIN ( slicer[date] )
                && 'table'[date] <= MAX ( slicer[date] )
        )
    )
RETURN
    CALCULATE (
        DISTINCTCOUNT ( 'table'[ID] ),
        FILTER ( ALLSELECTED ( 'table' ), NOT ( 'table'[ID] IN _list ) )
    )

If you need detailed formula, please share some sample data and expected result.

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
PC2790
Community Champion
Community Champion

Here is an elaborative article by radacad that you cna refer to cater to your requirement

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.