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
alexavenger
New Member

Group by ID in Visual Table

I've read a lot about these here but seems that the solution that I need is not here. 

 

I have one table with animals and the country of origin concatenated csv like this:

 

Animal 1 | Norway, China, Perú

Animal 2 | Spain, Argentina, United States

 

I need to link that with another table where there are regions.

 

Norway | North Europe

China | Asia

Spain | South Europe

 

Obviously, I can't link it with the CSV content. 

 

So, I created another table from the same source as the first one but in columns like this.

 

Animal 1 | Norway

Animal 1 | China

Animal 1 | Perú

Animal 2 | Spain

...

 

Then I linked the first table with this one (with the ID, not showed here). And also I linked this third table with the country region one. 

 

So, now I need to have a report where I can export the list of animals filtering it by region. 

I've created a report with a Table including data from the First table and adding Region filter.

 

1 - This way the filter is not working as there's no data from the table where the Region is linked.

 

Solution. I've added data from 2 table to the table, the table result is like this:

 

Animal 1 | Norway | Norway, China, Perú

Animal 1 | China | Norway, China, Perú

Animal 1 | Perú | Norway, China, Perú

Animal 2 |Spain | Spain, Argentina, United States

...

 

This way when I filter by region the table changes but I have duplicated Animals and I'm only interested in having Animal 1 and csv countries. 

 

I wonder if it's possible to group by column 1 (Animal1) like MySQL and have something like this:

 

Animal 1 | Norway | Norway, China, Perú

 

Animal 2 |Spain | Spain, Argentina, United States

 

It's not perfect but then I can hide the middle column and check only the other ones.

 

A long text here... sorry

 

Thank you for your help.

1 ACCEPTED SOLUTION
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @alexavenger,

 

It seems that you have three tables and create the relationships. To get the solution, I need to know the table you create.

 

If it is convenient, could you share a dummy pbix file which can reproduce the scenario, so that we can help further investigate on it? You can upload it to OneDrive or Dropbox and post the link here. Do mask sensitive data before uploading.)

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
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

3 REPLIES 3
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @alexavenger,

 

It seems that you have three tables and create the relationships. To get the solution, I need to know the table you create.

 

If it is convenient, could you share a dummy pbix file which can reproduce the scenario, so that we can help further investigate on it? You can upload it to OneDrive or Dropbox and post the link here. Do mask sensitive data before uploading.)

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Yes you're right the problem is in the relationship. 

It was single, now is fixed!

Anonymous
Not applicable

WIth out column header , simply following the values is diffcult to follow in some places. If you put thses sample data in tablur format , will be easy to understand.

 

Thanks

Raj

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.