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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
bruno_rsp
Regular Visitor

User without connection

good evening

I created this measure
UserOff = var cc1 = DISTINCTCOUNT(License[IdUser]) return if (cc1>0, blank(), "No access")
to know which users have not accessed the system in the month.

Measure above combined with the Iduser me field lists users who have not actually logged in.

Measure worked correctly.

But I need to count and show the amount of these users who have accessed.

Any tips on how to do it?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @bruno_rsp ,

 

Are you want to mark the inactive users?

If so you could use VALUES() function like below:

Column = 
var activeuser = CALCULATETABLE(VALUES(LicenceTotvs[IdUser]),FILTER(LicenceTotvs,LicenceTotvs[month] = UserAss[month]))
return
IF(UserAss[IdUser] in activeuser,"active","inactive")

 

Best Regards,

Jay

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@bruno_rsp , you should get that using

DISTINCTCOUNT(License[IdUser])

 

If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi, amitchandak.

Hello, amitchandak.

How are you?

I use exactly this DISTINCTCOUNT function.

I can know the number of users who have connected to the system.

I can also find out how many active users I have.

Example:
35 users connected.

I have 45 active users.

I need to know which are these 10 that do not connect.

I did the subtraction of active users - users who connected.

Here is the formula I used:

UserOn = DISTINCTCOUNT(LicenceTotvs[IdUser])

UserAss = COUNT(UserAss[IdUser])

UserOff = UserAss - UserOn

Useoff is not bringing users who have not logged in in the month, it shows in a managerial way the users who have not logged in.


 

 

Anonymous
Not applicable

Hi @bruno_rsp ,

 

Are you want to mark the inactive users?

If so you could use VALUES() function like below:

Column = 
var activeuser = CALCULATETABLE(VALUES(LicenceTotvs[IdUser]),FILTER(LicenceTotvs,LicenceTotvs[month] = UserAss[month]))
return
IF(UserAss[IdUser] in activeuser,"active","inactive")

 

Best Regards,

Jay

Helpful resources

Announcements
November Fabric Update Carousel

Fabric Monthly Update - November 2025

Check out the November 2025 Fabric update to learn about new features.

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!

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.

Users online (25)