Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Syndicate_Admin
Administrator
Administrator

Agregar varias bibliotecas de SharePoint a una consulta

Hola amigos, estoy intentando agregar varias bibliotecas de SharePoint a la misma consulta. Aquí están mis bibliotecas:

https://URL.com/sites/who-we-are/
https://URL.com/sites/tools-to-do-my-job/
https://URL.com/sites/our-locations/
https://URL.com/sites/how-we-work/

Y aquí está mi código actual, basado en una sola biblioteca:

let
  Source = SharePoint.Tables("https://URL.com/sites/who-we-are/", [Implementation="2.0", ViewMode="All"]),
    #"793529eb-48c3-4fad-a005-7a4aa0a716ad" = Source{[Id = "793529eb-48c3-4fad-a005-7a4aa0a716ad"]}[Items],
  #"Expanded Topic" = Table.ExpandListColumn(#"793529eb-48c3-4fad-a005-7a4aa0a716ad", "Topic"),
  #"Expanded Topic1" = Table.ExpandRecordColumn(#"Expanded Topic", "Topic", {"Label", "TermID"}, {"Topic.Label", "Topic.TermID"}),
    #"Added Prefix" = Table.TransformColumns(#"Expanded Topic1", {{"Name", each "https://URL.com/sites/who-we-are/SitePages/" & _, type text}}),
    #"Removed Other Columns" = Table.SelectColumns(#"Added Prefix",{"Name", "Topic.TermID"}),
    #"Renamed Columns" = Table.RenameColumns(#"Removed Other Columns",{{"Topic.TermID", "Topic ID"}})
in
    #"Renamed Columns"

Realmente agradecería un poco de ayuda aquí 🙂

1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

Puede comenzar con estos para obtener las tablas de origen combinadas, y en la segunda línea en adelante, debe lidiar con guid, ya que es difícil comprender el objetivo final.

let
    Source = Table.Combine(
        {
        SharePoint.Tables("https://URL.com/sites/who-we-are/", [Implementation="2.0", ViewMode="All"]),
        SharePoint.Tables("https://URL.com/sites/tools-to-do-my-job/", [Implementation="2.0", ViewMode="All"]),
        SharePoint.Tables("https://URL.com/sites/our-locations/", [Implementation="2.0", ViewMode="All"]),
        SharePoint.Tables("https://URL.com/sites/how-we-work/", [Implementation="2.0", ViewMode="All"])
        }
    ), 
...
            

View solution in original post

3 REPLIES 3
Syndicate_Admin
Administrator
Administrator

Puede comenzar con estos para obtener las tablas de origen combinadas, y en la segunda línea en adelante, debe lidiar con guid, ya que es difícil comprender el objetivo final.

let
    Source = Table.Combine(
        {
        SharePoint.Tables("https://URL.com/sites/who-we-are/", [Implementation="2.0", ViewMode="All"]),
        SharePoint.Tables("https://URL.com/sites/tools-to-do-my-job/", [Implementation="2.0", ViewMode="All"]),
        SharePoint.Tables("https://URL.com/sites/our-locations/", [Implementation="2.0", ViewMode="All"]),
        SharePoint.Tables("https://URL.com/sites/how-we-work/", [Implementation="2.0", ViewMode="All"])
        }
    ), 
...
            

Eso es súper útil, gracias @sevenhills 🙂

Me alegro de que sea útil.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.