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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Sum rows in dataset

Hello,

I have an Excel-dataset which looks like this:

 

4 Food260
 41 Fruits170
  411 Apple100
  412 Banana70
 42 Vegetables90
  421 Lettuce50
  422 Tomatoes40
5 Medicine 

 

Can PowerBI recognize the sum rows while importing the data? Is there an opportunity to mark rows as sum of the others? Or should the data be cleaned before importing to PowerBI?

 

Thanks for your help in advance.

 

Regards

 

Jenny

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

Power BI won't recognize the total rows automatically while importing the dataset. You may need to transform data. Please have a look at below workaround.

 

Split the Category ID column.

3.PNG   4.PNG

 

Result table.

5.PNG

 

Use a Matrix to display data. Turn off "Stepped layout" option.

2.png 1.png

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
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

4 REPLIES 4
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous ,

 

There are two columns in source dataset, right? What does each column refer to? 

 

Can PowerBI recognize the sum rows while importing the data? Is there an opportunity to mark rows as sum of the others?

What do you mean "sum rows"? What is your desired output in Power BI?

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi Yuliana,

 

e.g. the category fruits is the sum of banana & apple as well as the category food is the sum of fruits and vegetables. My question is how PowerBI can recognize these rows as totals of the other while importing the dataset. Or if there is an opportunity to mark those rows as totals afterwards.

 

Thanks

 

Jenny

Hi @Anonymous ,

 

Power BI won't recognize the total rows automatically while importing the dataset. You may need to transform data. Please have a look at below workaround.

 

Split the Category ID column.

3.PNG   4.PNG

 

Result table.

5.PNG

 

Use a Matrix to display data. Turn off "Stepped layout" option.

2.png 1.png

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Oh okay, too bad that this is not possible. But thank you for your help and solution! 🙂

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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