Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Solved! Go to Solution.
Try
6 month active =
VAR EndDate =
MAX ( 'Date'[Date] )
VAR StartDate = EndDate - 180
VAR AppLogUsers =
CALCULATETABLE (
DISTINCT ( AppLog[UserID] ),
DATESBETWEEN ( 'Date'[Date], StartDate, EndDate )
)
VAR AllPointUsers =
CALCULATETABLE (
DISTINCT ( AllPoint[UserID] ),
DATESBETWEEN ( 'Date'[Date], StartDate, EndDate )
)
VAR CombinedUsers =
DISTINCT ( UNION ( AppLogUsers, AllPointUsers ) )
VAR Result =
COUNTROWS ( CombinedUsers )
RETURN
Result
Try
6 month active =
VAR EndDate =
MAX ( 'Date'[Date] )
VAR StartDate = EndDate - 180
VAR AppLogUsers =
CALCULATETABLE (
DISTINCT ( AppLog[UserID] ),
DATESBETWEEN ( 'Date'[Date], StartDate, EndDate )
)
VAR AllPointUsers =
CALCULATETABLE (
DISTINCT ( AllPoint[UserID] ),
DATESBETWEEN ( 'Date'[Date], StartDate, EndDate )
)
VAR CombinedUsers =
DISTINCT ( UNION ( AppLogUsers, AllPointUsers ) )
VAR Result =
COUNTROWS ( CombinedUsers )
RETURN
Result
I never thought of using calculate table to transform them into same headers then union.
I still need to get UserId into AppLog table somehow to test this, but your answer already give me the general idea and direction, which I can pretty much see that it will definitely work.
This look much cleaner than my approach too!
Thank you very much for your assistance.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 83 | |
| 48 | |
| 36 | |
| 31 | |
| 29 |