Struggling with Basic relationship joins

malraff

New Member
Joined
Jan 25, 2017
Messages
2
hi

i have 2 really simple data models

data set 1

Code
1
2
3

data set 2

TopLevel desc
1 apple
2 banana
3 Carrot


i join the 2 table with a relationship Code = Toplevel, i have no duplicates

but when i use a pivot table to show the data i get

Code Desc
1 apple
banana
Carrot
2 apple
Banana
Carrot


im obviously missing something obvious to a trained eye?

any ideas?

mal
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
You only have 1 data model but 2 tables.

A pivot table is a tool to aggregate date, not a query tool. If you want to use a pivot table, you need a measure too. You could simply drag desc to values as well as rows
 
Upvote 0
You only have 1 data model but 2 tables.

A pivot table is a tool to aggregate date, not a query tool. If you want to use a pivot table, you need a measure too. You could simply drag desc to values as well as rows

hi Matt, thanks for reply
i know i am am trying to use power pivot as a db, which would be nice for me in this instance
desc is a text field (description), if i put it in as a value then it wants to count/sum etc the field? where as i just want the text shown

mal
 
Upvote 0
What version of Excel do you have? If you have Excel 2016, you can write this measure.

=concatonatex(values(table2[Desc]),table2[desc],", ")

if it is 2010/13 you can write this measure

=if(hasonevalue(values(table2[Desc])),values(table2[Desc]),"Multiple Results")
 
Upvote 0

Forum statistics

Threads
1,213,534
Messages
6,114,186
Members
448,554
Latest member
Gleisner2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top