Forum Discussion
stokesmcr
10 years agoNew Member
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 ...
- 10 years ago
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"))))
GilesWalker
10 years agoSkilled Sharer
stokesmcr - had this same issue the other day. This worked for me:
CALCULATE(SUMX('Table','Table'[Invoiced goods]+[Ordered goods]),FILTER(ALL('Table'),'Table'[Period]<=MAX('Table'[Period])))
Thanks should work for you. 'Table' is what ever your table/file name is.
Thanks,
Giles
stokesmcr
10 years agoNew Member
Thanks for your help so far. How did you pass the time period requirement into the formula?
In my case - I want "Invoiced" for April and "Orders" for May + June.
Thank you, Michael