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

Group with Subgroup Total Not Calculating Correctly in Matrix

Good morning, 

I am trying to calculate the Net value of two seperate columns. I only want to display values that are below zero.

Below is the data I am using and while it calculates the individual information correctly, it does not calculate the group total correctly. 

Power BI Screenshot.JPG

Here is my formula typed out:

Net 60 = IF((SUM('Excess Credits'[Positive])+SUM('Excess Credits'[Credit 60]))>0,0,(SUM('Excess Credits'[Positive])+SUM('Excess Credits'[Credit 60])))
 
Appreciate any help!
8 REPLIES 8
Icey
Community Support
Community Support

Hi @Anonymous ,

Is this problem solved?

Best Regards
Icey

Anonymous
Not applicable

Hello @Icey ,

 

It does not work when I enter it as a measure. Output below:

File 2.JPG

 

The Total is still 0. It should be -33,006.2

Icey
Community Support
Community Support

Hi @Anonymous ,

If you don't mind, please share me your PBIX file without real data and sensitive information.

 

Best Regards,

Icey

 

Icey
Community Support
Community Support

Hi @Anonymous ,

Please share me some data sample with the same structure of your real data.

 

Best Regards,

Icey

Anonymous
Not applicable

@Icey  See below for the format of my data. Is this what you are looking for?

 

data sample.JPG

 

The final 3 columns are added conditional columns.

Positive: If Invoice Type = Standard Then Outstanding Amount

Credit 60: If Invoice Type = Credit Memo Then Over 60 Days

Credit 30: If Invoice Type = Credit Memo Then Over 30 Days

Icey
Community Support
Community Support

Hi @Anonymous ,

The above DAX expression I posted is a Measure, not a Calculated Column. Please try it again.

 

Best Regards,

Icey

 

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

Icey
Community Support
Community Support

Hi @Anonymous ,

Try this:

Net 60 =
IF (
    HASONEFILTER ( 'Excess Credits'[Buyer] ),
    IF (
        ( SUM ( 'Excess Credits'[Positive] ) + SUM ( 'Excess Credits'[Credit 60] ) ) > 0,
        0,
        ( SUM ( 'Excess Credits'[Positive] ) + SUM ( 'Excess Credits'[Credit 60] ) )
    ),
    SUM ( 'Excess Credits'[Positive] ) + SUM ( 'Excess Credits'[Credit 60] )
)

 

Best Regards,

Icey

 

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

 

Anonymous
Not applicable

Thank you @Icey ,

 

I input that formula however, it is still showing zero in the Total. Do I need to use a SUMX or SUMMARIZE in my formula?

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors