Forum Discussion
User Registrations by Time Period
- 9 years ago
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.
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.
Best Regards,
Angelia
You should add a calendar table to your data model. Read my article about that here
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.
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.
Best Regards,
Angelia
- cronline9 years agoRegular Visitor
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-table/m-p/90776#U90776