Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Topjacket
Helper I
Helper I

Get version number of customers latest case

Hi All

 

I have a measure which has been working fine up until I refreshed the data. It broke the visual it was in and I can tie it back to just one customer, however, looking through the data I can't see any reason for it to brake. The version number is prefixed with "Version " and this customer has always been in the data.

 

I am using the following measure.

Latest Version = SUBSTITUTE(LOOKUPVALUE('Customer Data'[Version],'Customer Data'[SysDate], max('Customer Data'[SysDate])),"Version " ,"")

 

I then have a mtrix report broken down by customer, this measure has then been returning each customer's latest version without issue.

 

Is there a better way to set out this measure or would it be better as a column? 

 

Any advise would be great.

 

Thanks

4 REPLIES 4
Topjacket
Helper I
Helper I

Hi

Here is an example of the data the measure is using. I need to look for the latest case per cusotmer and return the version. 

 

Cust1 = 2

Cust2 = 4

Cust3 = 5

 

 

IDCustomer NameSysDateVersion
1Cust112/02/2023Version 1
2Cust201/01/2023Version 4
3Cust302/02/2023Verison 1
4Cust126/02/2023Version 2
5Cust222/12/2022Version 2
6Cust301/03/2023Verison 5

 

 

Thank you. You mentioned the measure works fine in a matrix. But in which case did the measure not working correctly. Can you explain your problem better? 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Its only in a single matrix. It was working fine until I refeshed the data so was really just seeing if there was a better way to acheive the same result.

 

I don't now how better I can explain what I am trying to acheive as its a pretty basic concept but now you have replied I'm unlikely to get replies from anyone else,  so thanks very much for that.

andhiii079845
Solution Sage
Solution Sage

Without a some screenshot of the visual, involved tables and columns. .It is for me not possible to help.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.