Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Hi,
Context
I have a Type 2 slowly changing dimension table that is listing out user names, id and email also with "RecordActiveFrom" and "RecordActiveTo". The entry with a blank "RecordActiveTo" is the most recent record.
Requirement
In my report I need to show a table of users along with when they first used the system. Due to limitations with the system that authors the data we are not able to store a 'UserCreatedOn' column in the database. Therefore, I need to show the most recent row for a given user alongside their earliest 'RecordActiveFrom' date which will represent when they appeared in our database. However, as yet I have not been able to achieve this result.
The table in my report for example should look like:
User ID First Name Last name Record Active From
| 1 | Jill | Smith | 27 January 2016 |
In my database, I would have:
ID FirstName LastName RecordActiveFrom RecordActiveTo
| 1 | Jill | Smith | 01 February 2016 | NULL |
| 1 | Jill | Jackson | 28 January 2016 | 29 January 2016 |
| 1 | Jill | Jones | 27 January 2016 | 27 January 2016 |
I have tried a number of approaches with table filters, various DAX expressions with no success.
Solved! Go to Solution.
Hi @Anonymous,
Create a calculated table with below DAX:
Type2_1 =
FILTER (
ALLEXCEPT ( 'Type 2', 'Type 2'[UserID] ),
'Type 2'[RecordActiveFrom]
= CALCULATE (
MIN ( 'Type 2'[RecordActiveFrom] ),
ALLEXCEPT ( 'Type 2', 'Type 2'[UserID] )
)
)
Best regards,
Yuliana Gu
Hi @Anonymous,
Create a calculated table with below DAX:
Type2_1 =
FILTER (
ALLEXCEPT ( 'Type 2', 'Type 2'[UserID] ),
'Type 2'[RecordActiveFrom]
= CALCULATE (
MIN ( 'Type 2'[RecordActiveFrom] ),
ALLEXCEPT ( 'Type 2', 'Type 2'[UserID] )
)
)
Best regards,
Yuliana Gu
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 60 | |
| 49 | |
| 30 | |
| 25 | |
| 23 |
| User | Count |
|---|---|
| 131 | |
| 103 | |
| 58 | |
| 39 | |
| 31 |