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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.