+ Reply to Thread
Results 1 to 7 of 7

Simplifying Power Query

  1. #1
    Forum Contributor
    Join Date
    11-10-2019
    Location
    India
    MS-Off Ver
    2013
    Posts
    350

    Simplifying Power Query

    Hi,

    In the attached sheet, I have following queries, just trying to make it simpler in just one query. Any Help Please

    = Table.NestedJoin(#"Table 3", {"Stock Invested in"}, #"Table 3 (3)", {"Stock Invested in"}, "Table 3 (3)", JoinKind.FullOuter)

    = Table.ExpandTableColumn(Source, "Table 3 (3)", {"Stock Invested in", "Sector", "Sector Total", "Value(Mn)", "% of Total Holdings", "1M Change", "1Y Highest Holding", "1Y Lowest Holding", "Quantity", "1M Change in Qty", "M-Cap", "GroupName"}, {"Table 3 (3).Stock Invested in", "Table 3 (3).Sector", "Table 3 (3).Sector Total", "Table 3 (3).Value(Mn)", "Table 3 (3).% of Total Holdings", "Table 3 (3).1M Change", "Table 3 (3).1Y Highest Holding", "Table 3 (3).1Y Lowest Holding", "Table 3 (3).Quantity", "Table 3 (3).1M Change in Qty", "Table 3 (3).M-Cap", "Table 3 (3).GroupName"})


    = Table.SelectColumns(#"Expanded Table 3 (3)",{"Stock Invested in", "Sector", "% of Total Holdings", "Table 3 (3).% of Total Holdings"})

    = Table.SelectRows(#"Removed Other Columns", each ([#"Table 3 (3).% of Total Holdings"] <> null) and ([#"% of Total Holdings"] <> null))


    = Table.TransformColumnTypes(#"Filtered Rows",{{"% of Total Holdings", Percentage.Type}, {"Table 3 (3).% of Total Holdings", Percentage.Type}})

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Simplifying Power Query

    check this

    Please Login or Register  to view this content.
    and use code tags in your posts

    [CODE] your code here [/CODE]

  3. #3
    Forum Contributor
    Join Date
    11-10-2019
    Location
    India
    MS-Off Ver
    2013
    Posts
    350

    Re: Simplifying Power Query

    I want to use only table 3 and table 3(3) to get same results

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Simplifying Power Query

    all-in-one single query

    with table 3 and table 3(3) only

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    11-10-2019
    Location
    India
    MS-Off Ver
    2013
    Posts
    350

    Re: Simplifying Power Query

    May I please request you to incorporate the query in the attached file for me to learn please
    Attached Files Attached Files

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Simplifying Power Query

    here is your previous file from post#1

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Simplifying Power Query

    .

    .


    I suggest to read Learn Power Query

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Power Query - Feeding dynamic sheet name to Power query
    By egoosen3 in forum Excel General
    Replies: 5
    Last Post: 09-13-2023, 07:41 AM
  2. [SOLVED] 2 fields checker- Request for alternative option in Power Query or Power Pivot
    By Shareez Saleem in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-15-2020, 08:36 AM
  3. Replies: 10
    Last Post: 06-25-2020, 12:19 AM
  4. [SOLVED] Power Query - excel formula translation into Power Query
    By afgi in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 02-19-2020, 03:38 AM
  5. Replies: 4
    Last Post: 02-17-2020, 06:03 AM
  6. Excel Power Query Refresh or Access Query - 2nd Query Run is faster
    By Steveapa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-03-2020, 10:16 AM
  7. Sub-Forum for Excel Power Tools (Power Query, Power Pivot & Power BI)
    By chullan88 in forum Suggestions for Improvement
    Replies: 10
    Last Post: 06-28-2018, 02:25 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1