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
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
Employee
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
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.