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?
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.
User | Count |
---|---|
136 | |
84 | |
65 | |
60 | |
55 |
User | Count |
---|---|
213 | |
108 | |
86 | |
82 | |
76 |