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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
JCBI1023
Helper III
Helper III

Calculate Sum Filtering Out Measures

Quick one for your masters. Thanks in advance. 

 

I am trying to calculate a sum which filters out some measures that I created. 

 

Customer Billed = CALCULATE(SUM(Sheet1[Total Hours]), FILTER(Sheet1 <> [ATO] || [Internal] || [Lost Time Hours] || [MC Labor Hours] || [Travel Hours]))

 

I need the "Total Hours" sans the measures that I created "ATO", "INTERNAL", etc.

 

I know my measure is close, but I can't get it to work. 

 

err.pngerr 2.png

1 ACCEPTED SOLUTION
Vvelarde
Community Champion
Community Champion

@JCBI1023

 

HI, i will try with:

 

CustomerBilled=

VAR NotBilleable=[ATO] + [Internal] + [Lost Time Hours] + [MC Labor Hours] + [Travel Hours]

RETURN
SUM(Sheet1[Total Hours]) - NotBilleable

 

Regards

 

Victor

Lima - Peru

 

 




Lima - Peru

View solution in original post

3 REPLIES 3
Vvelarde
Community Champion
Community Champion

@JCBI1023

 

HI, i will try with:

 

CustomerBilled=

VAR NotBilleable=[ATO] + [Internal] + [Lost Time Hours] + [MC Labor Hours] + [Travel Hours]

RETURN
SUM(Sheet1[Total Hours]) - NotBilleable

 

Regards

 

Victor

Lima - Peru

 

 




Lima - Peru

Perfect, sir. Thank you for your time. 

Omega
Impactful Individual
Impactful Individual

Can you try: 

 

Customer Billed = CALCULATE(SUM(Sheet1[Total Hours]), ALLEXCEPT (Sheet1, Sheet1[ATO], Sheet1[Internal], Sheet1[Lost Time Hours], Sheet1[MC Labor Hours], Sheet1 [Travel Hours])

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.