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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
vandid
New Member

DAX does not equal function in measure not filtering

Hello! 

 

Any help with this is greatly appreciated! 

 

My Capital 2019 measure works perfectly. My Expense 2019 measure just replacing the "=" with "<>" is not actually taking out the capital numbers.  I have a table with capital/expense by year and quarter and I need to separate it out into 2 measures.  There are too many expense types to type all of them out so I was hoping to use the dne sign.  What am I doing wrong here??  Any help is greatly appreciated! 

 

Expense 2019 = calculate(sumx('Saving Record Fuel','Saving Record Fuel'[Q1 Ex/Cap]+'Saving Record Fuel'[Q2 Exp/Cap]+'Saving Record Fuel'[Q3 Exp/Cap]+'Saving Record Fuel'[Q4 Exp/Cap]),'Saving Record Fuel'[FiscalYear]="2019",'Saving Record Fuel'[ExpenseType] <> "Capital - IT Hardware & Equipment" || 'Saving Record Fuel'[ExpenseType] <> "Capital - Other Capital Costs" || 'Saving Record Fuel'[ExpenseType] <> "Capital - Property, Plant & Equipment (PP&E)")
 
Capital 2019 = calculate(sumx('Saving Record Fuel','Saving Record Fuel'[Q1 Ex/Cap]+'Saving Record Fuel'[Q2 Exp/Cap]+'Saving Record Fuel'[Q3 Exp/Cap]+'Saving Record Fuel'[Q4 Exp/Cap]),'Saving Record Fuel'[FiscalYear]="2019",'Saving Record Fuel'[ExpenseType]= "Capital - IT Hardware & Equipment"||'Saving Record Fuel'[ExpenseType]= "Capital - Other Capital Costs"|| 'Saving Record Fuel'[ExpenseType]= "Capital - Property, Plant & Equipment (PP&E)")

 

1 REPLY 1
vandid
New Member

I think I solved my own problem... For the expense measure, I just needed to use AND && instead of OR || when excluding the capital types. 

 

[insert face palm emoji]

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.