I am working on Loss Triangle in Power BI where AccidentYear
are rows and DevYear
are columns.
The values in the table are Running Total
created by measure:
Running Total Loss =
CALCULATE(
SUM(fact_Losses[PaymentAmount]),
FILTER(ALL(fact_Losses[DevYear]),fact_Losses[DevYear]<=MAX(fact_Losses[DevYear]))
)
Link to get Raw data:
https://www.dropbox.com/s/dvb6cu1k4vmzkur/ClaimsLloysddd.xlsx?dl=0
Running Total Cumulative Data looks like this:
AccidentYear DevYear Running Total Loss
2012 12 164714.11
2012 24 167727.65
2012 36 172888.65
2013 12 2314247.18
2013 24 4074094.91
2013 36 5247246.06
2013 48 5576930.29
2013 60 6487155.06
2013 72 6899512.68
2014 12 3367220.82
2014 24 4831946.69
2014 36 5741213.36
2014 48 6750204.17
2014 60 8384764.91
2015 12 7624575.21
2015 24 9935018.26
2015 36 11767207.67
2015 48 14653278.99
2016 12 8531229.05
2016 24 11768128.83
2016 36 17178123.28
2017 12 7390158.93
2017 24 12695778.03
2018 12 13136428.25
Then I am using matrix visual with AccidentYear
are rows and DevYear
are columns.
For Year 2012 Development Year only goes till 36.
But I still need to display the last number, which is 172,888.65
in the rest of empty cells.
I tried to utilize ISBLANK()
but did not have success so far.
The desirable result should look like this:
UPDATE: pbix file can be found here:
https://www.dropbox.com/s/wl1ot9ejgyv8yi3/Loss%20Triangle%20United%20Specialty.pbix?dl=0
PaymentAmount
rather thanRunning Total Loss
? – Alexis Olson