Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. 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
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 51 | |
| 37 | |
| 35 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 72 | |
| 70 | |
| 39 | |
| 34 | |
| 23 |