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

Sum and Filter from two tables with multiple criteria and date


@Sahir_Maharaj  was a champ helping me with a smiliar problem (Solved: Lookupvalue two tables with multiple criteria - Microsoft Fabric Community). In this example I would want to add a date as well.

 

This is the two tables I have but I am struggling to add the date columns to the formula.

 

Tabel1:

Cost GroupDate Column to Calculate
ID 12023-01
CALCULATE(SUM('Tabel2'[Costs]),FILTER('Tabel2','Tabel2'[Cost Group] = 'Tabel1'[Cost Group] && ('Tabel2'[Account] = "ABC1 || 'Tabel2'[Account] = "ABC2"))) = 8000

 

Tabel2:

Cost GroupAccountDateCosts
ID 1ABC12023-011000
ID 1ABC12023-01

2000

ID 1ABC22023-015000
ID 1 ABC12023-02500
1 REPLY 1
ryan_mayu
Super User
Super User

@Anonymous 

is this what you want?

 

CALCULATE(SUM('Tabel2'[Costs]),FILTER('Tabel2','Tabel2'[Cost Group] = 'Tabel1'[Cost Group]&&'Tabel2'[Date] = 'Tabel1'[Date] && ('Tabel2'[Account] = "ABC1 || 'Tabel2'[Account] = "ABC2"))) = 8000





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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