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! Request now

Reply
KP_PB
New Member

distinct users for distinct applications

table is like given below

APP NAME  USER ID
APP_A        P1001
APP_A        P1002
APP_A        P1003
APP_A        P1004
APP_B        P1001
APP_B        P1002
APP_B        P1003
APP_C        P1001
APP_C        P1002
APP_C        P1004
APP_D        P1001
APP_D        P1002
APP_D        P1004
APP_D        P1005

 

need result like, common users from all applications

Sample result

APP NAME   USER ID
APP_A         P1001
APP_A         P1002
APP_B         P1001
APP_B         P1002
APP_C         P1001
APP_C         P1002
APP_D         P1001
APP_D         P1002

1 ACCEPTED SOLUTION
KP_PB
New Member

Yes, this worked. Thanks a ton!!

View solution in original post

3 REPLIES 3
KP_PB
New Member

Yes, this worked. Thanks a ton!!

Samarth_18
Community Champion
Community Champion

Hi @KP_PB ,

 

You could create a column as below and use it as filter on visual:-

Common_user =
VAR _dist_app =
    DISTINCTCOUNT ( 'Table'[APP N] )
VAR _com_user =
    COUNTROWS ( FILTER ( 'Table', 'Table'[USER ] = EARLIER ( 'Table'[USER ] ) ) )
RETURN
    IF ( _com_user = _dist_app, "Y", "N" )

Output:-

image.png

File for reference:-

 

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Anonymous
Not applicable

Hi Samarth,

 

Please, Can you explain how this statement evaluates. Thanks.

 

FILTER ( 'Table', 'Table'[USER ] = EARLIER ( 'Table'[USER ] )

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