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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

SHOW ONLY MATCHING VALUES

Hi,

 

I want to show values of lastest date for every client:

Example:

Client    Date           Amount

x2019-03-0130
x2019-03-0260
x2019-03-0320
y2019-03-0140
y2019-03-0250

Result

x2019-03-0320
y2019-03-0250

 

Thanks

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

 

These measures work

 

Last date = MAX(Data[Date])

Value on last date = CALCULATE(SUM (Data[Amount]),LASTNONBLANK(Data[Date],SUM(Data[Amount])))

 

Hope this helps.

 

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

 

These measures work

 

Last date = MAX(Data[Date])

Value on last date = CALCULATE(SUM (Data[Amount]),LASTNONBLANK(Data[Date],SUM(Data[Amount])))

 

Hope this helps.

 

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Thanks, It works for me too

If my reply helped, please mark it as Answer.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.