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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
cronline
Regular Visitor

User Registrations by Time Period

Hi,

 

I have a User Registrations table which is populated when a user registers all their personal details. Each registration is Timestamped with a Registration Date. I would like to build a chart, let's say a line chart, that shows me Months along the horizontal axis and a count of registrations in that month along the vertical access.

 

Any help in pointing me in the right direction would be appreciated.

 

Thanks

Chris

1 ACCEPTED SOLUTION

Hi @cronline


I try to reproduce your scenario on my local computer and get the expected result as follows.

First, add a calendar table to your data model as Matt posted. The first screenshot below is the register table, the second is calendar table. Create a relationship between them.

 
1.png2.jpg

Second, create a column in calendar, and a measure using the following formula.

MONTH = MONTH(DateTable[Date])
COUNT = CALCULATE(COUNTROWS(Register),ALLEXCEPT(DateTable,DateTable[MONTH]))


COUNTROWS function counts the number of rows in the specified table. The reason of using the function is that same name people may register at one day. So the each row displays one custom.

Finally, create a line chart. Select Month in Axis, count measure as value level, please review the following result.

3.png4.png

 

Best Regards,
Angelia

View solution in original post

3 REPLIES 3
MattAllington
Community Champion
Community Champion

You should add a calendar table to your data model. Read my article about that  here 

 

http://exceleratorbi.com.au/power-pivot-calendar-tables/



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Hi @cronline


I try to reproduce your scenario on my local computer and get the expected result as follows.

First, add a calendar table to your data model as Matt posted. The first screenshot below is the register table, the second is calendar table. Create a relationship between them.

 
1.png2.jpg

Second, create a column in calendar, and a measure using the following formula.

MONTH = MONTH(DateTable[Date])
COUNT = CALCULATE(COUNTROWS(Register),ALLEXCEPT(DateTable,DateTable[MONTH]))


COUNTROWS function counts the number of rows in the specified table. The reason of using the function is that same name people may register at one day. So the each row displays one custom.

Finally, create a line chart. Select Month in Axis, count measure as value level, please review the following result.

3.png4.png

 

Best Regards,
Angelia

Thanks for your thorough response Angelia. I have unfortunately hit a stumbling block while trying to follow the first few steps in creating the Date table. I have created a post about that here: http://community.powerbi.com/t5/Desktop/Error-relating-to-the-DATE-Function-when-creating-a-Date-tab...

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors