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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Super User
Super User

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]))

@ 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!:
The Definitive Guide to Power Query (M)

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
Employee
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
Employee
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
Super User
Super User

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]))

@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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