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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
Syndicate_Admin
Administrator
Administrator

Filtered sum

Hello

I need to add the values of the column ("Inscrits") of the table ("Annexa2")

But segun un filtro: tabla "Fam_Act", column "Type" = "Workshops"

---------

Table "Annexa2" and "Fam_Act" are related through the "Fami_Act_Centre2" field

Thanks a lot!!

3 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@Syndicate_Admin ,The information you have provided is not making the problem clear to me. Can you please explain with an example.

Appreciate your Kudos.

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

Hi @Syndicate_Admin ,

 

I think you want to calculate sum by Fami_Act_Centre2 and Type in "Fam_Act" table should equal to Workshops. 

Try this code.

 

Column = sumx(filter(Annexa2,Annexa2[Fami_Act_Centre2]=EARLIER(Fam_Act[Fami_Act_Centre2])&& Fam_Act[Type] ="Workshops" ) ,Annexa2[Registered] )

 

Result is as below.

1.png

 

Best Regards,
Rico Zhou

 

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

Hi @Syndicate_Admin ,

 

Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it. Or you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file without sensitive data.


Best Regards,

Rico Zhou

View solution in original post

6 REPLIES 6
Syndicate_Admin
Administrator
Administrator

Thanks a lot!!

Hi @Syndicate_Admin ,

 

Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it. Or you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file without sensitive data.


Best Regards,

Rico Zhou

Syndicate_Admin
Administrator
Administrator

Excuse me... that I have not explained myself very well

I want to add the column "inscrits" of the first table, but only take into account the rows that in the related table "Fam_Act" put "Workshops"

Table "Annexa2"

Column 1Fami_Act_Centre2Registered
AAA3
BBB4

"Fam_Act" table

TypeFami_Act_Centre2
WorkshopsAAA
DiffusionBBB

Hi @Syndicate_Admin ,

 

I think you want to calculate sum by Fami_Act_Centre2 and Type in "Fam_Act" table should equal to Workshops. 

Try this code.

 

Column = sumx(filter(Annexa2,Annexa2[Fami_Act_Centre2]=EARLIER(Fam_Act[Fami_Act_Centre2])&& Fam_Act[Type] ="Workshops" ) ,Annexa2[Registered] )

 

Result is as below.

1.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

@Syndicate_Admin a, new column in table 1

 

maxx(filter(Fam_Act, Fam_Act[Fami_Act_Centre2] = Annexa2[Fami_Act_Centre2] ) ,Fam_Act[Type] )

 

or

 

maxx(filter(Fam_Act, Fam_Act[Fami_Act_Centre2] = Annexa2[Fami_Act_Centre2] && Fam_Act[Type] ="Workshops" ) ,Fam_Act[Type] )

 

refer 4 ways to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
amitchandak
Super User
Super User

@Syndicate_Admin ,The information you have provided is not making the problem clear to me. Can you please explain with an example.

Appreciate your Kudos.

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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