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

Calculate comparing two columns as a filter

Hi, everyone.

 

Basically what I need is in the title. I have a table that needs to sum the revenue by store and month of another table. But I can't use lookupvalue because I have multiple brands of revenue on the same store. 

 

1 ACCEPTED SOLUTION

I figured it out myself!

 

What I did was use the DAX function FILTER. It turned out something like this: CALCULATE(SUM(TABLE2[REVENUE]),FILTER(TABLE2,TABLE2[MONTH]=TABLE1[MONTH]),FILTER(TABLE2,TABLE2[STORE]=TABLE1[STORE]))

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi, @Henrique_Quint 

Thank you for sharing the solution, your sharing will promote the development of the community. If you have any new questions in the future, you can continue to create new posts on the forum to ask questions.

 

Best Regards

Jianpeng Li

I figured it out myself!

 

What I did was use the DAX function FILTER. It turned out something like this: CALCULATE(SUM(TABLE2[REVENUE]),FILTER(TABLE2,TABLE2[MONTH]=TABLE1[MONTH]),FILTER(TABLE2,TABLE2[STORE]=TABLE1[STORE]))

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
Top Kudoed Authors