cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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.

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

PBI Community Highlights

PBI Community Highlights

Check out what's new in the Power BI Community!

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Top Kudoed Authors
Users Online
Currently online: 219 members 2,056 guests
Please welcome our newest community members: