Troubleshooting help: Adding text to pivot tables via Data Model

OceanStateSixSpeed

New Member
Joined
Jul 24, 2020
Messages
12
Office Version
  1. 2016
Platform
  1. Windows
I am trying to add text to a Pivot Table. I got it to work using a mini example, but the same process is still not working for my original data.

My mini example, which is working:
Data source
GroupSectionAuthorComments
G1S1JohnApples
G1S2JohnOranges
G1S3JohnPears
G2S4JohnStrawberries
G2S5JohnBlueberries
G2S6JohnGuava
G1S1MikeGrapefruit
G1S2MikeLychees
G1S3MikePlums
G2S4MikeRaspberries
G2S5MikeBananas
G2S6MikeCherries

Output

TextColumn Labels
Row LabelsJohnMikeGrand Total
G1Apples,Oranges,PearsGrapefruit,Lychees,PlumsApples,Oranges,Pears,Grapefruit,Lychees,Plums
S1ApplesGrapefruitApples,Grapefruit
S2OrangesLycheesOranges,Lychees
S3PearsPlumsPears,Plums
G2Strawberries,Blueberries,GuavaRaspberries,Bananas,CherriesStrawberries,Blueberries,Guava,Raspberries,Bananas,Cherries
S4StrawberriesRaspberriesStrawberries,Raspberries
S5BlueberriesBananasBlueberries,Bananas
S6GuavaCherriesGuava,Cherries
Grand TotalApples,Oranges,Pears,Strawberries,Blueberries,GuavaGrapefruit,Lychees,Plums,Raspberries,Bananas,CherriesApples,Oranges,Pears,Strawberries,Blueberries,Guava,Grapefruit,Lychees,Plums,Raspberries,Bananas,Cherries

I created this by adding the table to the data model while creating the pivot, then did "Add Measure", and used the "CONCATENATEX" formula.

However, when I follow the same process for my REAL data, I get this message:
1597303448351.png


I don't get this message every time. Sometimes it appears to work but when I drag the new field into the pivot, nothing happens.

Here's what my DAX formula looks like:
1597303624462.png


I will note I'm in the Germany, where semicolons are used in formulas instead of commas.

Because my real text is a lot more messy than the example, I thought maybe the new lines were the the problem, so I ran all my text through CLEAN(), but that also didn't help. There are also some blank cells, but I don't believe that is the problem either.

Any ideas?
 

Attachments

  • 1597303443338.png
    1597303443338.png
    7.5 KB · Views: 31

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

Forum statistics

Threads
1,223,933
Messages
6,175,470
Members
452,646
Latest member
tudou

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