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.
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
Solved! Go to Solution.
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
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
Here is an elaborative article by radacad that you cna refer to cater to your requirement
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
94 | |
81 | |
66 | |
58 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |