Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Help with Filter Formula

Hi All,

 

I have a query that pulls in our sales pipeline from Salesforce which contains many opportunities that can have multiple rows. Each opportuinity has a unique id.

 

What I am trying to do is create a calculated table that has the Opportunity IDs of all deals where the total deal value is >=10

 

I have come up with the following formula that nearly works, but for some reason not quite. There are a few deals that are missing, and I don't know why. I think that maybe my table formula isn't doing what I think it is. Any help guidance with either why my formula isn't working, or what a better formula would be will be greatly appreciated. Thank you.

 

Here is my formula

 

Pipe TCV >10m = SUMMARIZE(
    CALCULATETABLE(
        FILTER('2 Pipeline','2 Pipeline'[Pipe CV €M]>=10)),
'2 Pipeline'[Opportunity ID])
1 ACCEPTED SOLUTION
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous ,

 

That's because you filtered the row rather than the total of each Opportunity ID. Please try these two measures.

 

Pipe TCV >10m =
SUMMARIZE (
    CALCULATETABLE (
        FILTER (
            '2 Pipeline',
            CALCULATE (
                SUM ( '2 Pipeline'[Pipe CV €M] ),
                ALLEXCEPT ( '2 Pipeline', '2 Pipeline'[Opportunity ID] )
            ) >= 10
        )
    ),
    '2 Pipeline'[Opportunity ID]
)
Table =
SELECTCOLUMNS (
    FILTER (
        SUMMARIZE (
            '2 Pipeline',
            '2 Pipeline'[Opportunity ID],
            "Total", SUM ( '2 Pipeline'[Pipe CV €M] )
        ),
        [Total] >= 10
    ),
    "Opportunity ID", [Opportunity ID]
)

 

 

Best Regards,

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

View solution in original post

2 REPLIES 2
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous ,

 

That's because you filtered the row rather than the total of each Opportunity ID. Please try these two measures.

 

Pipe TCV >10m =
SUMMARIZE (
    CALCULATETABLE (
        FILTER (
            '2 Pipeline',
            CALCULATE (
                SUM ( '2 Pipeline'[Pipe CV €M] ),
                ALLEXCEPT ( '2 Pipeline', '2 Pipeline'[Opportunity ID] )
            ) >= 10
        )
    ),
    '2 Pipeline'[Opportunity ID]
)
Table =
SELECTCOLUMNS (
    FILTER (
        SUMMARIZE (
            '2 Pipeline',
            '2 Pipeline'[Opportunity ID],
            "Total", SUM ( '2 Pipeline'[Pipe CV €M] )
        ),
        [Total] >= 10
    ),
    "Opportunity ID", [Opportunity ID]
)

 

 

Best Regards,

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

Perfect! Thank you.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors