cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Meneghetti Frequent Visitor
Frequent Visitor

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 -1MAT AtualLançamento 
11Lançamento 
12Lançamento 
34Maduro
56maduro
78Lançamento 
78maduro
   
   
   
MAT Atual -1 lançamentosMAT Atual lançamentos 
911 

 

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 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Help New Measure - SUMIF Equivalent

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"
  )
)





Did I answer your question? Mark my post as a solution.

Proud to be a Datanaut! Appreciate your Kudos Smiley Happy
Feel free to email me with any of your BI needs.





2 REPLIES 2
Super User
Super User

Re: Help New Measure - SUMIF Equivalent

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"
  )
)





Did I answer your question? Mark my post as a solution.

Proud to be a Datanaut! Appreciate your Kudos Smiley Happy
Feel free to email me with any of your BI needs.





Meneghetti Frequent Visitor
Frequent Visitor

Re: Help New Measure - SUMIF Equivalent

Thanks! It worked!

Helpful resources

Announcements
Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Power BI Helps Homeless and Trouble Youth

Power BI Helps Homeless and Trouble Youth

We spoke with Power BI Super User, Greg Deckler, about his charity work

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 369 members 3,959 guests
Please welcome our newest community members: