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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Active and Inactive Users

Hi everyone. 

 

I have some troubles trying to calculate active and inactive users. I have the next tables (it's an example)

 

Table 1 

 

PhoneDateClient
22201/08/19A
22201/02/20B
22401/02/20A

 

Table 2 

 

PhoneEmailID
222exam..1
224ex...3
223exam2...2

 

 

Table 1 is about the transaction and table 2 is about an user database. So I want to know the active users and inactive users by phone. For example in 2019 there was just 1 active user and 2 inactive users. 

 

I have a calendar table. Thank you very much. 

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

We can create a measrue and there is no relationship between date table and table to meet your requirement.

 

Measure = 
var selected_ = SELECTEDVALUE('Date'[Date])
var date_long = DATEDIFF(MAX('Table'[Date]),TODAY(),MONTH)
var date_long1 = DATEDIFF(selected_,TODAY(),MONTH)
return
IF(date_long>date_long1,"inactive","active")

 

Active1.jpg

 

Active2.jpg

 

Acive3.jpg

 

If it doesn't meet your requirement, could you please show the exact expected result based on the table that we have shared?

BTW, pbix as attached.

 

Best regards,

 

Community Support Team _ zhenbw

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-zhenbw-msft
Community Support
Community Support

Hi @Anonymous ,

 

Sorry for that we don’t understand your issue clearly.

What is your desire result? And how to judge if a user is active or inactive?

Could you please provide a mockup sample  based on fake data or describe the fields of each tables and the relations between tables simply?

It will be helpful if you can show us the exact expected result based on the tables.

Please upload your files to OneDrive For Business and share the link here. Please don't contain any Confidential Information or Real data in your reply.     

 

Best regards,

 

Community Support Team _ zhenbw

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Yes of course. 

 

I have a data base about users, each phone each a user. Each row is a transaction, so I want to know for example who is inactive five months ago.

For example, my last transaction was five months ago, so If I filter it with the calendar 3 months ago I'm an inactive user, on the other hand If I filter it with the calendar 6 months ago I'm an active user. 


What I did was this: 
Operations = countrows(table1)
Status= IF(operations=0,"Inactive","Active")
But It does not work at all. Because It works when I put it on a table but not in a graphic. 
Thank you. 

Hi @Anonymous ,

 

We can create a measrue and there is no relationship between date table and table to meet your requirement.

 

Measure = 
var selected_ = SELECTEDVALUE('Date'[Date])
var date_long = DATEDIFF(MAX('Table'[Date]),TODAY(),MONTH)
var date_long1 = DATEDIFF(selected_,TODAY(),MONTH)
return
IF(date_long>date_long1,"inactive","active")

 

Active1.jpg

 

Active2.jpg

 

Acive3.jpg

 

If it doesn't meet your requirement, could you please show the exact expected result based on the table that we have shared?

BTW, pbix as attached.

 

Best regards,

 

Community Support Team _ zhenbw

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors