Forum Discussion
Meneghetti
8 years agoNew Member
Help New Measure - SUMIF Equivalent
Hello Guys
First time here, first of all I'm sorry that English is not my native language. I am trying to make a sum of a column only when my product is a "lançamento" in the lançamento column. The example below:
| MAT Atual -1 | MAT Atual | Lançamento |
| 1 | 1 | Lançamento |
| 1 | 2 | Lançamento |
| 3 | 4 | Maduro |
| 5 | 6 | maduro |
| 7 | 8 | Lançamento |
| 7 | 8 | maduro |
| MAT Atual -1 lançamentos | MAT Atual lançamentos | |
| 9 | 11 |
I'm using the following formula: Soma lanç = SUMX(VALUES(OUTUBRO[Lançamentos]);OUTUBRO[Soma Mat Atual])
But does it sum only what is being filtered in the report and not just the "lançamentos" in that column could help with a new formula?
Thanks so much
Add a measure as below, change column name and table name as per your data table.
Sum of Lancamento = Calculate( Sum(Table[MAT Atual]), Filter( AllSelected(Table), Table[Lancamento] = "Lancamento" ) )
2 Replies
- parry2kSuper User
Add a measure as below, change column name and table name as per your data table.
Sum of Lancamento = Calculate( Sum(Table[MAT Atual]), Filter( AllSelected(Table), Table[Lancamento] = "Lancamento" ) )- MeneghettiNew Member
Thanks! It worked!