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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Bwong
Frequent Visitor

Dynamic filtering by criteria in another table

Hello, 

 

I am new to BI. I m working with table like below

Date                 Code 1   Code 2   Code 3      Amount 
31/12/2017        A            D              Z             10
31/12/2017        A            D              R              20
31/12/2017        A            D              R              30      
31/12/2017        A            D              R              30      
:
:


I then summarize a new table with unique of Date together with Code 1 Code 2 and Code 3. 
Date                 Code 1   Code 2   Code 3      Amount --> I am unable to use do the summation of this column. 
31/12/2017        A            D              Z             
31/12/2017        A            D              R     

In short, please share if you know how to perform summation of filtering based on the criteria shown in each row. 

Thanks so much 😉 

3 ACCEPTED SOLUTIONS
Greg_Deckler
Community Champion
Community Champion

You can do this in a table visualization by just putting Date, Code 1, Code 2 and Code 3 in the table and SUM of Amount.

 

If you want a new table for it you could do:

 

Table = SUMMARIZE('Table',[Date],[Code 1],[Code 2],[Code 3],"Total",SUM([Amount]))


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

PattemManohar
Community Champion
Community Champion

It should be a pretty straight forward....

 

Under Power Query Editor, use "Group By" option and use "Advanced" to add multiple columns and have the aggregated field... 

 

 InputInputOutputOutput

 





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

Proud to be a PBI Community Champion




View solution in original post

v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @Bwong,

Could you please tell me if your problem has been solved? If it is, could you please mark the helpful replies as Answered?

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @Bwong,

Could you please tell me if your problem has been solved? If it is, could you please mark the helpful replies as Answered?

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
PattemManohar
Community Champion
Community Champion

It should be a pretty straight forward....

 

Under Power Query Editor, use "Group By" option and use "Advanced" to add multiple columns and have the aggregated field... 

 

 InputInputOutputOutput

 





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

Proud to be a PBI Community Champion




Greg_Deckler
Community Champion
Community Champion

You can do this in a table visualization by just putting Date, Code 1, Code 2 and Code 3 in the table and SUM of Amount.

 

If you want a new table for it you could do:

 

Table = SUMMARIZE('Table',[Date],[Code 1],[Code 2],[Code 3],"Total",SUM([Amount]))


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors