Forum Discussion

MiguelSaldana77's avatar
MiguelSaldana77
Resolver I
9 years ago

Cumulative week for Null values

Need Help

 

I have this 3 Indicators, “Saldo Inicial Semana” is how the week Star before include the week movements. This is working ok, but my problema is when a Week Don´t contains values, so “Saldo Inicial Semana” get null.

Formula:

Saldo Inicial Semana = Var LNBD=FIRSTNONBLANK(ALL('Cat Tiempo'[Fecha].[Date]),'Indicadores Bancos'[Suma Total Bancos]) Return

CALCULATE( 'Indicadores Bancos'[Suma Total Bancos], FILTER (ALL('Cat Tiempo'), 'Cat Tiempo'[Fecha].[Date]<LNBD))

 

 

I tried with this formula too

Saldo Inicial Semana = IF(NOT(ISBLANK(CALCULATE(SUM('Indicadores Bancos'[Total_Bancos])))),
 CALCULATE(
  SUM('Indicadores Bancos'[Total_Bancos]),
  FILTER(
   ALL('Cat Tiempo'),
   'Cat Tiempo'[Fecha] < Min('Cat Tiempo'[Fecha]) ) ))

3 Replies