DAX Help - Latest Value

johnny_doyle

New Member
Joined
Apr 13, 2017
Messages
3
Hi

I am looking for help with a DAX Measure. I have a list of milestones that might change each month. I am looking to do two things.

- Return the latest status value of the milestone,
- Count the number that match that status value, e.g.how many are now Green, Amber, etc.

My data looks a bit like this.


datereferencestatus
01/05/2020​
milestone1Green
01/05/2020​
milestone2Green
01/05/2020​
milestone3Red
01/05/2020​
milestone4Amber
01/05/2020​
milestone5Green
01/05/2020​
milestone6Green
01/05/2020​
milestone7Red
01/05/2020​
milestone8Amber
01/05/2020​
milestone9Green
01/05/2020​
milestone10Red
01/06/2020​
milestone1Amber
01/06/2020​
milestone2Amber/Red
01/06/2020​
milestone3Amber/Red
01/06/2020​
milestone4Amber/Red
01/06/2020​
milestone5Amber
01/06/2020​
milestone6Amber/Red
01/06/2020​
milestone7Green
01/06/2020​
milestone8Green
01/06/2020​
milestone9Amber/Red
01/06/2020​
milestone10
01/07/2020​
milestone1
01/07/2020​
milestone2
01/07/2020​
milestone3Amber
01/07/2020​
milestone4Amber/Red
01/07/2020​
milestone5Green
01/07/2020​
milestone6Green
01/07/2020​
milestone7Amber/Red
01/07/2020​
milestone8
01/07/2020​
milestone9
01/07/2020​
milestone10

With a related table


StatusValue
Blank
0​
Green
1​
Green/Amber
2​
Amber
3​
Amber/Red
4​
Red
5​
Delivered
6​
Cancelled
7​
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

Forum statistics

Threads
1,215,771
Messages
6,126,798
Members
449,337
Latest member
BBV123

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top