cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
saylee
Frequent Visitor

To count total logins by a single user.

I have User Table, Sessions Table & one more table where there are user_id, session_id. 
I want to find out the total number of logins(sessions) a user has had. 

eg: a user has had 3 logins from same user_id so how can I count that? 

1 REPLY 1
ToddChitt
Solution Sage
Solution Sage

You don't. Power BI does that for you if you have proper relationships set up between the User and Sessions tables. Simple create a Table visual with User ID from User, and COUNT of Session ID from Sessions. 

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Top Solution Authors