• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Format the data differently in the table|Power Query|Excel Forum|My Online Training Hub

You are here: Home / Format the data differently in the table|Power Query|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumPower QueryFormat the data differently in the …
sp_PrintTopic sp_TopicIcon
Format the data differently in the table
Avatar
lea cohen
Member
Members
Level 0
Forum Posts: 219
Member Since:
March 10, 2016
sp_UserOfflineSmall Offline
1
November 21, 2021 - 8:11 pm
sp_Permalink sp_Print

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

sp_AnswersTopicSeeAnswer See Answer
Avatar
Alan Sidman
Steamboat Springs, CO
Member
Members


Trusted Members
Level 0
Forum Posts: 132
Member Since:
October 18, 2018
sp_UserOfflineSmall Offline
2
November 22, 2021 - 1:48 pm
sp_Permalink sp_Print

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/

Avatar
lea cohen
Member
Members
Level 0
Forum Posts: 219
Member Since:
March 10, 2016
sp_UserOfflineSmall Offline
3
November 22, 2021 - 3:03 pm
sp_Permalink sp_Print

Seems like an ingenious idea !!!
If you can attach the file - it was not attached in a previous post
It will help me a lot !!!
Thank you!!!!!

Avatar
Alan Sidman
Steamboat Springs, CO
Member
Members


Trusted Members
Level 0
Forum Posts: 132
Member Since:
October 18, 2018
sp_UserOfflineSmall Offline
4
November 23, 2021 - 4:48 am
sp_Permalink sp_Print

Sorry about the attachment.  Attached now.

sp_AnswersTopicAnswer
Answers Post
Avatar
lea cohen
Member
Members
Level 0
Forum Posts: 219
Member Since:
March 10, 2016
sp_UserOfflineSmall Offline
5
November 23, 2021 - 11:29 am
sp_Permalink sp_Print

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

Avatar
Alan Sidman
Steamboat Springs, CO
Member
Members


Trusted Members
Level 0
Forum Posts: 132
Member Since:
October 18, 2018
sp_UserOfflineSmall Offline
6
November 23, 2021 - 1:36 pm
sp_Permalink sp_Print

Highlight your table and click on Add to Data Model and click on refresh all.  Same as you would in a regular Pivot Table.  Make sure you are in Power Pivot.

Avatar
lea cohen
Member
Members
Level 0
Forum Posts: 219
Member Since:
March 10, 2016
sp_UserOfflineSmall Offline
7
November 23, 2021 - 2:18 pm
sp_Permalink sp_Print

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

Avatar
Alan Sidman
Steamboat Springs, CO
Member
Members


Trusted Members
Level 0
Forum Posts: 132
Member Since:
October 18, 2018
sp_UserOfflineSmall Offline
8
November 24, 2021 - 12:32 pm
sp_Permalink sp_Print

Here is what Microsoft suggests

https://support.microsoft.com/.....6568ca9be2

Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1514
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
9
November 24, 2021 - 2:09 pm
sp_Permalink sp_Print sp_EditHistory

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

grouped dataImage Enlarger

 

If you want to learn Power Query or Power Pivot we have courses for both

Power Query Course

Power Pivot Course

Regards

Phil

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Ahmad Alkhuffash, Chandler Davis
Guest(s) 9
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 870
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
michael serna
mashal sana
Tiffany Kang
Leah Gillmore
Sopi Yuniarti
LAFONSO HERNANDEZ
Hayden Hao
Angela chen
Sean Moore
John Chisholm
Forum Stats:
Groups: 3
Forums: 24
Topics: 6215
Posts: 27245

 

Member Stats:
Guest Posters: 49
Members: 31897
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.