Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I have a log table that contains an action, user id and date/time.
I would like to produce a line chart that shows continual user growth over time.
the Title column would need to only show the first login for each user. So that would be the first instance of 'launched app'.
How can I achieve this? Thank you
Solved! Go to Solution.
I think I've figured this out.
I created a column that has a 1 for the first appearance of each user email;
First Login =
VAR _class =
CALCULATE(
MIN('Log'[Date]),
ALLEXCEPT('Log', 'Log'[email])
)
RETURN
IF('Log'[Date] = _class, 1, BLANK())
Next I created a measure to count the logins cumulatively (dark blue line)
running sum = CALCULATE(
SUM('Log'[First Login]),
FILTER(ALLSELECTED('Log'),
'Log'[Date] >= DATE(YEAR(MAX('Log'[Date])),1,1) &&
'Log'[Date] <= MAX('Log'[date])
))
I think I've figured this out.
I created a column that has a 1 for the first appearance of each user email;
First Login =
VAR _class =
CALCULATE(
MIN('Log'[Date]),
ALLEXCEPT('Log', 'Log'[email])
)
RETURN
IF('Log'[Date] = _class, 1, BLANK())
Next I created a measure to count the logins cumulatively (dark blue line)
running sum = CALCULATE(
SUM('Log'[First Login]),
FILTER(ALLSELECTED('Log'),
'Log'[Date] >= DATE(YEAR(MAX('Log'[Date])),1,1) &&
'Log'[Date] <= MAX('Log'[date])
))
How about use a measure below?
UserNum = DISTINCTCOUNT(Log Table[UserID])
X-axis:Date
Y-axis:UserNum
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
97 | |
65 | |
45 | |
39 | |
31 |
User | Count |
---|---|
164 | |
111 | |
61 | |
53 | |
38 |