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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
0xygen27
Advocate II
Advocate II

Filter Table

Dear all,

 

I would like to know how to filter out a table. 

 

I got a table with multiple colums, some of them are Years, Description, Debet, Credit.

 

I want a measure that calculates the value of the description KLM (which is in my colum: Description) for the year 2017 (Debet - credit) 

 

what is the dax formula to use in this case?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

 

Delta := SUMX(
   FILTER(MyTable, MyTable[Description] = "KLM" && MyTable[Year] = 2017),
   MyTable[Debit] - MyTable[Credit]
)

 

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @0xygen27,


You can also use calculate function to get the result:

 

Result=
CALCULATE(SUM(Table[Debit]) - SUM(Table[credit]),
	FILTER(Table, Table[Description] = "KLM" && Table[Year] = 2017)
	)

 

Regards,

Xiaoxin Sheng

Anonymous
Not applicable

 

Delta := SUMX(
   FILTER(MyTable, MyTable[Description] = "KLM" && MyTable[Year] = 2017),
   MyTable[Debit] - MyTable[Credit]
)

 

When I upload my dataset to the online version I will get a big X in the visual. It can't show me the visual because there is something wrong with my measure...

As quick as the error appeared, even quicker did it dissapear when I uploaded it for the 3th time 🙂

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.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.