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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
bknewton29
Regular Visitor

SumX not working

Hi,
I'm having issues trying to get totals to appear for one of my measures. Below is the table I'm creating and I've highlighted the issue I'm having. Below that is the meaures I've created. Any help would be appreciated.

Query question.png

Lost Check 1 = ([FX Renewable Income (CY)]=0 && [FX Renewable Premium (CY)]=0 && [FX Renewable Income (PY)]>0)*1

Lost Check 2 = ([FX Renewable Income (CY)]<>0 && [FX Renewable Premium (CY)]<>0 && [FX Renewable Income (PY)]=0)*1

Overall Lost Check = [LostCheck1]+[LostCheck2]

Lost Calc = [FX Retained Income (Renewal)]-[FX Retained Income 1 Year Ago]-[Non-recurring business]

Lost Value = ([Lost Overall Check]>0)*[LostCalc]

Attempt at Lost measure =

IF(HASONEFILTER('Acturis Transaction Data'[ContRef|CommProd])=TRUE(),
[LostValue],
SUMX(SUMMARIZE('Acturis Transaction Data','Acturis Transaction Data'[ContRef|CommProd]),[LostValue]))

1 REPLY 1
Anonymous
Not applicable

Hi @bknewton29 ,

 

9.png

The table you created with SUMMARIZE does not have [LostValue] column, you try modifying it as:

Attempt at Lost measure =
IF (
    HASONEFILTER ( 'Acturis Transaction Data'[ContRef|CommProd] ) = TRUE (),
    [LostValue],
    SUMX (
        SUMMARIZE (
            'Acturis Transaction Data',
            'Acturis Transaction Data'[ContRef|CommProd],
            "Value", [LostValue]
        ),
        [Value]
    )
)

 

Best Regards,

Stephen Tao

 

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

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

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.