Forum Discussion

stokesmcr's avatar
stokesmcr
New Member
10 years ago
Solved

Formula Help (SUMIF not available)

Hi All,
Need some Power BI formula geniuses.
I have a formula which I have created in Excel and trying to replicate in Power BI, but unable due to SUMIF function not available.

General Gist of Formula.
1) Current Time Period is May.
2) I want to add - what I have invoiced for the last period + what I have orders for next period (see green)
3) See picture below how I currently have this executed in Excel, I cannot implement in Power BI.

Data below is dummy for sake of the exercise but I have a much larger data set in the background.

Please help!!

 

  • Managed to resolve it.

     

    Calculation = (CALCULATE(SUMX('Table'[Orders]),FILTER(Table,Table[Period]<>"APR 2016")) + (CALCULATE(SUMX('Table','Table'[Invoiced]),FILTER(Table,Table[Period]="APR 2016"))))