Concatenate in a Pivot Table

gmazza76

Well-known Member
Joined
Mar 19, 2011
Messages
782
Office Version
  1. 365
Platform
  1. Windows
Good afternoon,

I currently do calculations in a long winded formula that pulls the information from a table and shows the information as "100% (2)"

But if I do this in a pivot table I can complete the score 'Pass/'Completed' to gibe the % but can I add the (2) in the same output field so the table isn't to large as it shows as 5 individual columns where as if I need to do them all separately that would end up as 10 columns.

Code:
=CONCATENATE(TEXT(SUM(SUMIFS('Sheet1'!$M:$M,'QA Data'!$B:$B,Main!$F$2,'QA Data'!$D:$D,Main!$F$1,'QA Data'!$F:$F,C165)/SUMIFS('Sheet1'!$L:$L,'Sheet1'!$B:$B,Main!$F$2,'QA Data'!$D:$D,Main!$F$1,'Sheet1'!$F:$F,C165)),"0%")," (",SUMIFS('Sheet1'!$L:$L,'QA Data'!$B:$B,Main!$F$2,'QA Data'!$D:$D,Main!$F$1,'Sheet1'!$F:$F,C165),")"))

thanks
Gavin
 
Yes, if you use the data model and power pivot. You can then use CONCATENATEX to return text in the values area.
 
Upvote 0
Solution
The syntax for concatenatex can be found here: CONCATENATEX – DAX Guide

Your expression will need to concatenate the two measures for each row in the format you want, and you'll probably want to either turn off grand totals or have the measure return something different at that level.
 
Upvote 0
Here is a step by step tutorial
ttps://www.sfmagazine.com/articles/2018/july/excel-reporting-text-in-a-pivot-table/
 
Upvote 0

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