Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hello, I am quite new on this platform and I need help concerning Power BI!
I have a table "users" which indicates the date of creation of users, and a table "messages" which indicates the date of creation of messages. I would like to create a calendar table which would group by day the number of users and the number of messages (see below picture). In my calendar table, what is the formula for calculated columns "number_of_users" and "number_of_messages" ?
Thanks a lot,
Jean-Sebastien
Solved! Go to Solution.
Hi, a solution would be like this:
1. Create a New Table (Modeling - New Table):
CalendarTable = DISTINCT(UNION(VALUES(Messages[Created at]);VALUES(Users[Created at])))
2. Related the 3 tables:
3. Create 2 calculated Columns:
NumberofUsers = COUNTROWS(RELATEDTABLE(Users))+0
NumberofMessages = COUNTROWS(RELATEDTABLE(Messages))+0
Ready.
Hi, a solution would be like this:
1. Create a New Table (Modeling - New Table):
CalendarTable = DISTINCT(UNION(VALUES(Messages[Created at]);VALUES(Users[Created at])))
2. Related the 3 tables:
3. Create 2 calculated Columns:
NumberofUsers = COUNTROWS(RELATEDTABLE(Users))+0
NumberofMessages = COUNTROWS(RELATEDTABLE(Messages))+0
Ready.
Thank you very much!
I wanted to group my data by day, but now I know how to do it! And thank you for your explanation concerning relationships!
User | Count |
---|---|
93 | |
85 | |
76 | |
66 | |
62 |
User | Count |
---|---|
110 | |
96 | |
95 | |
64 | |
57 |