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

Filter -Help!

Hi! What am I doing wrong?

I am calculating a table cell from the sum of a column in Table 1. I need the sum only if a second column in Table 1 meets my criteria. 

 

 
1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Filter -Help!

Hi @lululady,

 

To new measure:

 

Oil MMBBLS =
VAR sumall =
    CALCULATE ( SUM ( Table1[Column2] ), ALL ( Table1 ) )
VAR c1 =
    MAX ( Table1[Column1] )
RETURN
    IF ( c1 = "Proved Developed Non- Producing", sumall, BLANK () )

Capture.PNG

 

For more details, please check the pbix as attached. If it doesn't meet your requirement, kindly share your excepted result to me.

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
9 REPLIES 9
Super User
Super User

Re: Filter -Help!

Hi,

 

Share the link from where i can download your PBI file.

lululady Frequent Visitor
Frequent Visitor

Re: Filter -Help!

Hi @Ashish_Mathur -

I am new to this and it is for a project. Your help means SO MUCH!!!

 

Super User
Super User

Re: Filter -Help!

Hi,

 

Try this calculated column formula

 

=IF('1P Reserves'[Column1]="Proved Developed Producing",CALCULATE(SUM('Reserve Run'[OilNet(Mbbl)]),'Reserve Run'[Reserve Category]="Producing"))

 

Hope this helps.

 

Untitled.png

lululady Frequent Visitor
Frequent Visitor

Re: Filter -Help!

@Ashish_Mathur 

Thank you!! I am getting the error: "Rename Columns: Model object names must be non-empty". ???

lululady Frequent Visitor
Frequent Visitor

Re: Filter -Help!

I got it!! How would I do the second row for "non-producing" since I can't create a new column because the new column is already there...? Is it a "new measure"??

Super User
Super User

Re: Filter -Help!

Hi,

 

 

Please state all your conditions clearly.

lululady Frequent Visitor
Frequent Visitor

Re: Filter -Help!

@Ashish_Mathur Not sure what you mean? :/

I need to add the second value under the column "Oil MMBBLS" for the "Proved Non-Producing" category.

Community Support Team
Community Support Team

Re: Filter -Help!

Hi @lululady,

 

To new measure:

 

Oil MMBBLS =
VAR sumall =
    CALCULATE ( SUM ( Table1[Column2] ), ALL ( Table1 ) )
VAR c1 =
    MAX ( Table1[Column1] )
RETURN
    IF ( c1 = "Proved Developed Non- Producing", sumall, BLANK () )

Capture.PNG

 

For more details, please check the pbix as attached. If it doesn't meet your requirement, kindly share your excepted result to me.

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Community Support Team
Community Support Team

Re: Filter -Help!

Hi @lululady,

 

Does that make sense? If so, kindly mark my answer as the solution to close the case please. Thanks in advance.

 

Regards,
Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

Virtual Launch Event

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 285 members 3,089 guests
Please welcome our newest community members: