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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.