Show only data from the latest date

ljkeefe

New Member
Joined
Jan 14, 2020
Messages
11
Office Version
  1. 365
Platform
  1. Windows
Hello -
sorry for the table below but I think my organization blocked XL2BB,it will no longer load to my Excel. Anyway, I'm trying to chart only the contents of Tank 1 and Tank 2 by latest date. I've chosen a column chart and added a measure with the following formula to provide me with the numbers by the latest date:
Measure = VAR LatestDate = Calculate (MAX(Table2[Date], ALL(Table2)), IF(MIN('Table2'[Date])=LatestDate, 1,0))

The goal is to graph how much of the 8,000 gallon capacity each tank has at the latest date.
When I got the formula to do something (not what I wanted) it showed me a total of the two tanks and would sum all the amounts entered in Tank 1 and Tank 2. I've messed with the formula so much now that it's giving me an error.
Your help is appreciated.


DateTruckOperatorCCBSandSno MeltSaltCCB ReplenishmentCCB AvailableTank 1Tank 2
16,000
8000​
8000​
1/1/2050015,500
8000​
7,500​
1/15/20200013,500
8000​
5,500​
1/20/201000200014,500
8000​
6,500​
14,500
0​
0​
14,500
0​
0​
14,500
0​
0​
14,500
0​
0​
14,500
0​
0​
14,500
0​
0​
14,500
0​
0​
14,500
0​
0​
14,500
0​
0​
14,500
0​
0​
14,500
0​
0​
14,500
0​
0​
14,500
0​
0​
14,500
0​
0​
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
I may have misunderstood the request but is this what you wanted?

Book1
ABCDEFGHIJKLMN
1DateTruckOperatorCCBSandSno MeltSaltCCB ReplenishmentCCB AvailableTank 1Tank 2Tank 1Tank 2
216,0008000800080006500
31/1/202050015,50080007500
41/15/2020200013,50080005500
51/20/20201000200014,50080006500
614,50000
714,50000
814,50000
914,50000
1014,50000
1114,50000
1214,50000
1314,50000
1414,50000
1514,50000
1614,50000
1714,50000
1814,50000
1914,50000
Sheet1
Cell Formulas
RangeFormula
M2:N2M2=INDEX(J2:J19,MATCH(MAX($A2:$A19),$A2:$A19,0))



1579722829434.png
 
Upvote 0
I want the graph to reflect the new amounts in the tanks as a new entry is made. Columns J, K, D and I all have formulas in them already. I'd like the graph to be in PowerBI, unless I can do that in Excel.
 
Upvote 0

Forum statistics

Threads
1,214,965
Messages
6,122,500
Members
449,090
Latest member
RandomExceller01

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