cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
New Member

Calculate the value of the column that is a unique customer by the recent date

Good afternoon!

I am having difficulty adding the debit that is a single CLIENT with the most recent date.

 

DATE; CLIENT; DEBIT;
03/03/2019; 30050; 554.20
03/15/2019; 30050; 300.28
03/19/2019; 30050; 300.28
03/07/2019; 28440; 254.65
03/17/2019; 28440; 458.74

 

Result:
03/19/2019; 30050; 300.28
03/17/2019; 28440; 458.74

Thankful,

1 ACCEPTED SOLUTION
Super User III
Super User III

Here's an option for a measure using variables

 

Most recent = 

var c = selectedvalue('Table'[CLIENT])

var d = calculate(max('Table'[DATE]),'Table'[CLIENT]=c)

return calculate(sum('Table'[DEBIT]),'Table'[CLIENT]=c,'Table'[DATE]=d)

View solution in original post

1 REPLY 1
Super User III
Super User III

Here's an option for a measure using variables

 

Most recent = 

var c = selectedvalue('Table'[CLIENT])

var d = calculate(max('Table'[DATE]),'Table'[CLIENT]=c)

return calculate(sum('Table'[DEBIT]),'Table'[CLIENT]=c,'Table'[DATE]=d)

View solution in original post

Helpful resources

Announcements
secondImage

Experience what’s next for Power BI

Join us for an in-depth look at the new Power BI features and capabilities at the free Microsoft Business Applications Launch Event.

secondImage

Power BI Women

Join our monthly meetings and learning sessions.

secondImage

Congratulations!

We are excited to announce the Power BI Super Users!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.