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! Get ahead of the game and start preparing now! Learn more
Hello.
From my CRM I am obtaining information that I must graph. I need to have for each customer the latest value for various attributes. Working with the information I finally have a table that contains accountid (the client), attribute (the various attributes), cretatedon (the date of change), newname (the value of that attribute) and Index (column added by me after sorting the changes by date.
I have tried to do it in various ways and I am not getting the data, could you help me?
Thanks a lot
Solved! Go to Solution.
Create a Calculated Column to Identify the Latest Record:
LatestRecord =
RANKX(
FILTER(
TableName,
TableName[accountid] = EARLIER(TableName[accountid]) &&
TableName[attribute] = EARLIER(TableName[attribute])
),
TableName[createdon],
,
DESC
)
Then, you can create a filtered table or measure to get only the latest records where the rank is 1.
LatestValuesTable =
FILTER(
TableName,
TableName[LatestRecord] = 1
)
Proud to be a Super User! |
|
Create a Calculated Column to Identify the Latest Record:
LatestRecord =
RANKX(
FILTER(
TableName,
TableName[accountid] = EARLIER(TableName[accountid]) &&
TableName[attribute] = EARLIER(TableName[attribute])
),
TableName[createdon],
,
DESC
)
Then, you can create a filtered table or measure to get only the latest records where the rank is 1.
LatestValuesTable =
FILTER(
TableName,
TableName[LatestRecord] = 1
)
Proud to be a Super User! |
|
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 132 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |