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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Anonymous
Not applicable

Grouping rows in table based on one column

Hello,

 

I've been trying to group rows from a table with several columns based in one field ("Concept" in this example), but I don't get how to do it. This data table is similar to mine, and it provides data from 2 different sources, maybe this can be useful.

 

ConceptPrize1Prize2
140€40€
260€40€
140€60€
260€60€

 

These prizes are very similar, because the final goal is to substract both of them, to see if there are any difference between those.

Here I show this same example, but with the desired table:

 

ConceptPrize1Prize2
140€40€
260€60€

 

It probably has a solution, but right now I can't figure it out. Thanks in advance.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi! Thanks for the solution.

In the end, I managed to solve it by merging both queries, to create one that is grouped by column "Concept", which was the initial problem.

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @Anonymous ,

 

If the two data sources you mentioned are located in two different tables, then you just need to establish the correspondence between the two tables.

vmengzhumsft_0-1662367829266.png

vmengzhumsft_1-1662367851996.png

So that if you create table visual , power bi will automatically identify the relationship and match them, you just get two rows:

vmengzhumsft_2-1662367937624.png

Not sure if this what you want, if I misunderstand your meanings,please let me know in time.

 

Best regards,

Community Support Team Selina zhu

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! Thanks for the solution.

In the end, I managed to solve it by merging both queries, to create one that is grouped by column "Concept", which was the initial problem.

Anonymous
Not applicable

Hi @Anonymous ,

 

I'm glad that you solved your problem. 

Please mark your answer as solution to help the other members find it more quickly~

 

Best regards,

Community Support Team Selina zhu

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

amitchandak
Super User
Super User

@Anonymous , Expected output and logic is not clear

 

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

Appreciate your Kudos.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Okey, sorry about that. I mean, I have this real example, which I have been using.

svalcarcel_0-1662017538368.png

First source, coming from an Excel document, return this 2 rows according to this example:

svalcarcel_1-1662018004597.png

 

On the other hand, from the database source, I get these rows:

 

svalcarcel_2-1662018140835.png

 

So, when I match them through another column, they return the table shown in first picture with that 4 rows.

I only need the 1st and 4th row, because that means that price corresponds to its associated concept.

I don't know if this example helped more when analyzing the problem.

 

Thanks in advance again.

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors