Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don'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.

Reply
nick9one1
Helper III
Helper III

show growth over time

I have a log table that contains an action, user id and date/time. 

nick9one1_0-1720538415710.png

 

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 


1 ACCEPTED SOLUTION
nick9one1
Helper III
Helper III

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())

 

nick9one1_1-1720712147040.png

 

 

 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])
 ))

 

nick9one1_2-1720712364258.png

 

 

 

 

 

View solution in original post

2 REPLIES 2
nick9one1
Helper III
Helper III

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())

 

nick9one1_1-1720712147040.png

 

 

 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])
 ))

 

nick9one1_2-1720712364258.png

 

 

 

 

 

mickey64
Super User
Super User

How about use a measure below?

    UserNum = DISTINCTCOUNT(Log Table[UserID])

    X-axis:Date

    Y-axis:UserNum

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.