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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
gbarr12345
Post Prodigy
Post Prodigy

One product on a few lines in table view

Hi there,

 

I have a power BI report using transactional data I added in via excel.

 

The issue I'm seeing is that one product has numerous lines when I only want it in one line.

 

Would you have any idea on how to get all these lines into one or is this possible?

 

 

gbarr12345_0-1719192109185.png

 

2 ACCEPTED SOLUTIONS
WanderingBI
Resolver III
Resolver III

Hi,

 

you propably have a data table like this:

"PRODUCT DESCRIPTION" "MARGIN"

A 5

A 3

A 2

 

It looks like you are using the table visual. The table visual in standard settings will show all your data for the columns that you add to it as it will simply show the values from your input data.

 

It really depends on what your goal is. One way to get this one product show in one line is to aggregate the values from your input data in some way. One example would be to calculate the average of all the values, like so:

 

Ibanez2000_0-1719166910318.png

 

Ibanez2000_1-1719166931850.png

 

 

 

 

View solution in original post

@gbarr12345 
I think at this stage the main challenge is to understand what the desired outcome is 🙂

So as usual, I recommend showing the desired result.

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

6 REPLIES 6
Ritaf1983
Super User
Super User

Hi @gbarr12345 
The Y-axis in a line chart functions as a value axis, inherently performing aggregation, much like a pivot table in Excel.

So if you need to show the values of every row separately, and there is no unique id for every row inside product you need to create an index like :

Ritaf1983_0-1719196686226.png

Then you can use this index as a X axis values :

Ritaf1983_1-1719196821751.png

The sum function is just for dragging the margin, as the X is a unique value it shows every point exactly as in the table

To add the index you can use a method from the linked  article :

https://radacad.com/create-row-number-for-each-group-in-power-bi-using-power-query

Pbix is also attached

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Hi Rita,

 

Thanks for the quick response.

 

That is helpful, however what I'm trying to do is to make them only 1 entry.

 

The Ara single EST is one product but there's various transactions for it. 

 

I'm looking to only have it as one line in a table view visualisation you see.

 

Is the fact that there's various transaction making it difficult to ahvieve this?

@gbarr12345 
I think at this stage the main challenge is to understand what the desired outcome is 🙂

So as usual, I recommend showing the desired result.

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Hi Rita,

 

Actually figured it out based on Ibanez's comment below.

 

I set it to Average and it brought the average figure for the products so only brought in one figure now.

 

Thanks for your help all the same, really appreciate it 🙂 

WanderingBI
Resolver III
Resolver III

Hi,

 

you propably have a data table like this:

"PRODUCT DESCRIPTION" "MARGIN"

A 5

A 3

A 2

 

It looks like you are using the table visual. The table visual in standard settings will show all your data for the columns that you add to it as it will simply show the values from your input data.

 

It really depends on what your goal is. One way to get this one product show in one line is to aggregate the values from your input data in some way. One example would be to calculate the average of all the values, like so:

 

Ibanez2000_0-1719166910318.png

 

Ibanez2000_1-1719166931850.png

 

 

 

 

You're a STAR!!!

 

That worked thank you so much 🙂 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.