

March 10, 2016

Hi,
In the attachment - there is column A.
I want it to focus on the rows of the number 9607 from column B.
And will display the numbers from column A in one cell with commas in between
As in the file - in the example in cell D3
And I need him to do this to me for every other number from column B.
So that the end result will be the same as in cells A10: B11.
(If impossible with commas then - sixty each number in a separate cell -
As in file in cells D1: G1)
Thank you so much for the help !!
Leah


Trusted Members

October 18, 2018

Bring your data into a Data Model and write a measure to consolidate the data separated by commas. See my attached file.
A tutorial on this is at: https://sfmagazine.com/post-en.....vot-table/


Trusted Members

October 18, 2018



March 10, 2016

Thank you!
Honestly, I had a hard time understanding how to do it ...
I want to enter on the file you brought me the data
Then go to Pivot and click Refresh
The problem is that the information table is not dynamic so it does not update me
So if it is not difficult for you to set the original table to be dynamic
And so I can use with the file.
Thank you Thank you Thank you!!!!!!!!!
Leah


Trusted Members

October 18, 2018



March 10, 2016

The truth is, I do not know Power Pivot
That's why you ask such simple questions,
But Suri ... it does not work for me
I took your table, switched to a Power Pivot card, marked the table, clicked Add to data model, Power Pivot opened for me, where - Issue 1 - was updated but RANGE's issue was not updated - so when I returned to Excel I clicked Refresh everything - failed.
How do I also update the RANGE issue?
Thank you so much for your patience for my questions !!!!
Leah


Trusted Members

October 18, 2018

Here is what Microsoft suggests


October 5, 2010

Hi Lea,
You can use Power Query to do this, see the attached file.
These are the steps:
1. Create a table from your data (CTRL+T)
2. Set the Values column to text
3. Group the data by the Key column (9607, 9608 etc)
4. Use Text.Combine to concatenate the Values together with a comma separator
Here's the query
let
Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Value", type text}}),
#"Grouped Rows" = Table.Group(#"Changed Type", {"Key"}, {{"Vals", each _, type table [Value=nullable text, Key=number]}}),
#"Added Custom" = Table.AddColumn(#"Grouped Rows", "Values", each Text.Combine([Vals][Value] ,",")),
#"Removed Columns" = Table.RemoveColumns(#"Added Custom",{"Vals"})
in
#"Removed Columns"
Giving this
If you want to learn Power Query or Power Pivot we have courses for both
Regards
Phil
1 Guest(s)
