Forum Discussion

AntonioPed's avatar
AntonioPed
Frequent Visitor
3 years ago
Solved

Calcular Previsión Anual

Hola, soy nuevo en DAX. Estoy pasando un qlikview a Power BI y quisiera por favor saber como traducir la previsión anual desde qlikview a powerbi. (rangesum(above(Sum ({<[Año Venta]={$(=max([AñoVe...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi AntonioPed ,

     

    Here I create a sample to have a test.

    Calculated column:

    Accumulate Value = CALCULATE(SUM('Table'[Value]),FILTER('Table','Table'[MonthNumber]<=EARLIER('Table'[MonthNumber])))
    Accumulate Value-1 = CALCULATE(SUM('Table'[Value-1]),FILTER('Table','Table'[MonthNumber]>=EARLIER('Table'[MonthNumber])))
    Projection = 'Table'[Accumulate Value] + 'Table'[Accumulate Value-1]

     Result is as below.

     

    Best Regards,
    Rico Zhou

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.