Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon'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.
Hey guys,
quick DAX question. I have two tables, one table with users (two columns: users[id], users[name]) and another table with actions (actions[date], actions[user_id]). Besides that I have a calendar table.
Now I want to calculate the number of "active users", meaning the number of users who are active per time frame. That's pretty easy via:
Active Users = CALCULATE( COUNTROWS(users), FILTER(users, CALCULATE( COUNTROWS(actions), FILTER(ALL(actions), actions[user_id] = users[id] && actions[date] >= MIN(calendar[Date]) && actions[date] <= MAX(calendar[Date]) ) ) > 0 ) )
But if I want to calculate the number of "Daily Active Users" per time frame, meaning the Sum over the number of days one user is active per time frame over all users, I don't have any clue how to do that in a measure without creating an extra Crossjoin table between the users table and the calendar.
Any clues?
Thank you,
Sebastian
Solved! Go to Solution.
Daily active = SUMX(Calenders,Calenders[Active Users])
I have kept your original measure as it is and created a iteration over the calender table which will give you the desired result.
Sum of Daily active users.
Hope this will solve your problem.
Daily active = SUMX(Calenders,Calenders[Active Users])
I have kept your original measure as it is and created a iteration over the calender table which will give you the desired result.
Sum of Daily active users.
Hope this will solve your problem.
can provide you the exact solution if get a snapshot of data.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
123 | |
78 | |
48 | |
38 | |
37 |
User | Count |
---|---|
196 | |
80 | |
70 | |
51 | |
42 |