Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
97 | |
97 | |
81 | |
77 | |
66 |
User | Count |
---|---|
126 | |
105 | |
103 | |
81 | |
72 |