Forum Discussion

yanivsab's avatar
yanivsab
Frequent Visitor
2 years ago
Solved

Distinct count Active User for 3 last month

Hi 

I Need to create a measure that show the distinct users that didn't made an activity for the last 3 months.

 

Table columns  :

- UserId ( Number )

-TimeFrame ( Date format ) 

- Has Activity (TRUE/FALSE Boolean Column)

 

Below is the measure i build which is not given me the correct picture ( i didn't success to filter the boolean column) 

The measure actually give me the distinct users that didn't made an activity  for each month while i would like to have  the last 3 months without activity.

 

InactiveUser_SPO = CALCULATE(DISTINCTCOUNT(_UserActivity_Export[UserId]),filter(_UserActivity_Export,_UserActivity_Export[TimeFrame].[Month] in {"August","september","october"} ))
 
i will appriciate your help
Thanks in advanced 
Yaniv

3 Replies