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
TesterPowerBI
Regular Visitor

How to get a concrete value from a table into a measure?

Hi all. I'm new in PowerBI, so apologies in advance for the very simple question.

 

I would like to create a measure that contains the value of Date modified row for Test Run Export XRay.csv file name (see image). In the example below the value I should be getting is: "20/08/2024 18:25:30".

TesterPowerBI_1-1724185515860.png

 

What I need to include in my measure?

 

Thank you so much in advance!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi,ryan_mayu ,thanks for your concern about this issue.

Your answer is excellent!
And I would like to share some additional solutions below.
Hello,@TesterPowerBI .I am glad to help you.
In addition to using the iterative function maxx, you can use the IF judgment or calculate the target value by using the calculate function in conjunction with the max function to achieve your needs.

vjtianmsft_0-1724204623396.pngvjtianmsft_1-1724204630450.png

measure:

M_1 = 
VAR _name=MAX('Table'[Name])
VAR _Extension=MAX('Table'[Extension])
VAR _modified=MAX('Table'[Date modified])
RETURN
CALCULATE(MAX('Table'[Date modified]),FILTER(ALL('Table'),CONTAINSSTRING(_name,"Test Run Support XRay.csv")))

measure:

M_2 = 
VAR _name=MAX('Table'[Name])
VAR _Extension=MAX('Table'[Extension])
VAR _modified=MAX('Table'[Date modified])
RETURN
IF(CONTAINSSTRING(_name,"Test Run Support XRay.csv"),_modified)

Below is my test data:

vjtianmsft_2-1724204723518.png

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Carson Jian,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi,ryan_mayu ,thanks for your concern about this issue.

Your answer is excellent!
And I would like to share some additional solutions below.
Hello,@TesterPowerBI .I am glad to help you.
In addition to using the iterative function maxx, you can use the IF judgment or calculate the target value by using the calculate function in conjunction with the max function to achieve your needs.

vjtianmsft_0-1724204623396.pngvjtianmsft_1-1724204630450.png

measure:

M_1 = 
VAR _name=MAX('Table'[Name])
VAR _Extension=MAX('Table'[Extension])
VAR _modified=MAX('Table'[Date modified])
RETURN
CALCULATE(MAX('Table'[Date modified]),FILTER(ALL('Table'),CONTAINSSTRING(_name,"Test Run Support XRay.csv")))

measure:

M_2 = 
VAR _name=MAX('Table'[Name])
VAR _Extension=MAX('Table'[Extension])
VAR _modified=MAX('Table'[Date modified])
RETURN
IF(CONTAINSSTRING(_name,"Test Run Support XRay.csv"),_modified)

Below is my test data:

vjtianmsft_2-1724204723518.png

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Carson Jian,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Thanks for the very detailed explanation! It worked.

ryan_mayu
Super User
Super User

@TesterPowerBI 

you can try this

 

Measure = maxx(FILTER('Table (2)','Table (2)'[name]="Test Run Export XRay.csv"),'Table (2)'[Date modified])
 
 




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.

Top Solution Authors
Top Kudoed Authors