Forum Discussion
Filter on the measure.
The general formula for a measure like that is:
SUMX(FILTER(...),...)
Or you can use CALCULATE
CALCULATE(SUM(...),FILTER(...))
without sample data, not sure how much more I can help.
- Anonymous10 years agoNot applicable
I'm trying it
(SUMX (FILTER (DMEGF_Ano; max (DMEGF_Ano [Year])) facts, facts[Vl_PedidoCompra] * facts [Qtd_PedidoCompra]))
but it is giving error- Sean10 years ago
Community Champion
Anonymous try this
delete the facts and add => comma and ( => , (
- Anonymous10 years agoNot applicable
I did as suggested however without success, maybe I'm trying to make wrong way, what I need is to get the value of a calculation over a year filtered and also the value of it in anetrior period to the filtrate, for example, I want to know the total sales of the year 2016 and in a different measure present value of 2015
- Greg_Deckler10 years ago
Community Champion
The error I see is the first "facts", get rid of that.
Also, and this is purely a guess that your FILTER clause should be:
FILTER (facts; max (DMEGF_Ano [Year]))
- Anonymous10 years agoNot applicable
but the SUMX function asks to be declared a table, any suggestions?