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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Nfuentes86
Helper I
Helper I

Power Bi Matrix Excluding Rows

Nfuentes86_0-1712952741929.png

How can I exclude Change Orders and Indirects from the Total Column? 

I have tried : 

TotalExcludingIndirectsAndChangeOrders = CALCULATE( SUM('ProgressWeeklyTable-6300263'[SV]), FILTER( 'ProgressWeeklyTable-6300263', 'ProgressWeeklyTable-6300263'[Category] <> "Indirect" && 'ProgressWeeklyTable-6300263'[Category] <> "Change Order" && NOT(ISBLANK('ProgressWeeklyTable-6300263'[SV])) ) )
 
The outcome isn't doing what I need it to do. I need Indirects and Change Order NOT to be included in the Total Column. As we can tell here Original Colum (SV) Total is 4,646.00 with the Dax Measure is Giving the same 4646.
Nfuentes86_1-1712952827330.png

 

2 REPLIES 2
Anonymous
Not applicable

Hi @Nfuentes86 ,

 

Change your formula like below:

sum_ = SUM('Table'[Value])
result_ =
IF (
    HASONEVALUE ( 'Table'[Cagetory] ),
    SUM ( 'Table'[Value] ),
    CALCULATE (
        SUM ( 'Table'[Value] ),
        FILTER (
            ALL ( 'Table' ),
            'Table'[Cagetory] <> "Indirects"
                && 'Table'[Cagetory] <> "Change Order"
                && NOT ( ISBLANK ( 'Table'[Cagetory] ) )
        )
    )
)

vkongfanfmsft_0-1713148949179.png

 

Best Regards,
Adamk Kong

 

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

Nfuentes86_0-1713363153601.png

what do i do in this situation?

used --> 

result_ =
IF (
    HASONEVALUE ( 'ProgressWeeklyTable-6300263'[SV] ),
    SUM ( 'ProgressWeeklyTable-6300263'[SV] ),
    CALCULATE (
        SUM ( 'ProgressWeeklyTable-6300263'[SV] ),
        FILTER (
            ALL ( 'ProgressWeeklyTable-6300263' ),
            'ProgressWeeklyTable-6300263'[SV] <> "Indirects"
                && 'ProgressWeeklyTable-6300263'[SV] <> "Change Order"
                && NOT ( ISBLANK ( 'ProgressWeeklyTable-6300263'[SV] ) )
        )
    )
)

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

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.