Forum Discussion
Applying pivot and combining few of its columns
Thanks for inputs.
1. When i try to put filter on pivot table, and arrange in ascending order for either name, manufacturer or item, consolidated columns goes away
before filter
After filter
2. ALso whats the formula applied to combined item?
vt_excel That doesn't happen for me.
In Power Pivot, I added a calculated column that combines the three relevant columns and then I created a DAX measure that allows you to include a text in the value field of the pivot table. Press this button
on the Power Pivot ribbon to get into Power Pivot / Data Model.
Now, if you are unfamiliar with Power Pivot and DAX, it's going to be challenge to just "hop on" and expect that everything will be clear at once.
- vt_excelJan 21, 2023Copper Contributor
I tried similiar thing, but I got error this, can you please advise.
Attached is excel where I am working
- SergeiBaklanJan 21, 2023Diamond Contributor
vt_excel
DAX doesn't support CHAR() functions, and for not-beta doesn't support UNICHAR(). Try to Alt+Enter hered:=VAR textCombined = CONCATENATEX(Table1, Table1[consolidate], " ") RETURN IF(HASONEVALUE(Table1[Customer Name]), textCombined, "")in concatenatex() between "". RETURN is adjusted to to show all texts combined in Grand Total.
Don't forget to wrap text in cell formatting for PivotTable
Please see attached.
- vt_excelJan 22, 2023Copper Contributor
- Riny_van_EekelenJan 21, 2023Platinum Contributor
vt_excel It seems you are using an older version of PQ that doesn't recognize the UNICHAR function.
Replace UNICHAR(10) with the following key sequence:
quotation mark, alt-Enter, quotation mark.
The measure will than look like this:
Now you can drag the measure "d" into the Values field of the Pivot table. Make sure that the part of the pivot table that holds this measure is set to Wrap Text.