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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
DannaeMar
New Member

SUMX

Hello, I would like to add the values ​​of population per year, how would do my formula?

WhatsApp Image 2021-10-18 at 20.09.39.jpeg

 

3 REPLIES 3
v-jingzhang
Community Support
Community Support

Hi @DannaeMar 

 

Have you solved this problem? If so, kindly accept an appropriate reply as the solution or post your own solution to help other people find it quickly. Thanks.

 

Best Regards,
Community Support Team _ Jing

v-jingzhang
Community Support
Community Support

Hi @DannaeMar 

 

You want to get the result into a new column or a new table? If you would like to use Power Query to achieve it, you can use the Group By feature under Transform tab. Put Year in Group box and aggregate Population column by Sum into a new column. If you want to group by more columns like country, sex..., you can click Advanced radio box and add more group columns there. 

21102201.jpg

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

HotChilli
Super User
Super User

The simplest way is to drag 'country', 'year' and 'population' on to a table visual.  Make sure 'population' is using SUM in the fields well.  Make sure Year is set to 'Do not summarize' because it is stored as a number here and powerbi is going to want to SUM it.

If you want something more complex please explain in more detail and post the data.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Solution Authors