Forum Discussion

JanBauer's avatar
JanBauer
Frequent Visitor
6 years ago

Previous not blank value

Hi all,

 

I have the following matrix:

No_20152016201720182019
100114,900,000,007,000,00
1002103,55102,200,0081,150,00
1003200,69172,25105,45199,70168,30

 

The measure that caluculates the values looks like this:

 

m_maxBestand = IF(ISBLANK(MAX(_PBI_Dispo_InventoryDev[cumulativBestand]));0;MAX(_PBI_Dispo_InventoryDev[cumulativBestand]))

 

 

The table [_PBI_Dispo_InventoryDev] looks as follows (filtered on '1002' for a better overview):

No_PostingDateSumPerDayGroupIndexcumulativBestandyDatePeriod
100201.01.201523,65123,652015
100212.03.2015-6,5217,152015
100226.08.201586,43103,552015
100216.09.2015-14102,552015
100217.05.2016-0,355102,22016
100218.05.2016-2,55699,652016
100205.08.2016-3,1796,552016
100208.08.2016-8,8887,752016
100222.02.2018-6,6981,152018

 

What I want to achieve is that my measures shows the latest available value instead of 0 so that the matrix looks like the following:

No_20152016201720182019
100114,9014,9014,907,007,00
1002103,55102,20102,2081,1581,15
1003200,69172,25105,45199,70

168,30

 

Is this possible and if so - how?

 

Thanks!

 

 

10 Replies