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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Syndicate_Admin
Administrator
Administrator

NECESITO CREAR UN SUBGRUPO AL FINAL GROUPNAME(dimension)

TABLA RAW

NOMBRE DEL GRUPONÚMERO DE TICKETPRIORIDADLÍNEA
AINC1111
AINC1122
AINC1134SRA.
BINC2222CLIENTE
BINC2213
BINC2235SRA.
CINC3313DD
CINC3321SRA.
CINC3334GH


NECESITO ASÍ

NOMBRE DEL GRUPONÚMERO DE TICKETPRIORIDADLÍNEA
AINC1111
AINC1122
AINC1134SRA.
A3
BINC2222CLIENTE
BINC2213
BINC2235SRA.
B3
CINC3313DD




1 REPLY 1
Syndicate_Admin
Administrator
Administrator

@Nagasekharbi ,

Esto se puede hacer en Power Query. Agregue un paso personalizado que haga referencia al paso anterior, elimine todas las columnas excepto el nombre del grupo, elimine los duplicados y agregue una columna personalizada llamada NÚMERO DE TICKET con un valor de "3" y luego agregue este paso al paso anterior al paso personalizado. Vea el ejemplo de script M a continuación

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WclTSUfL0czY0NAQyQDjYUylWB0ncCMgwwiJuDGSYALFvMFjcCSJuZART7+zj6eoXgioHMt8YYRZcHCRmijDLGSJubAxT7+KCKm4EdSu6epib3D2UYmMB", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"GROUP NAME" = _t, #"TICKET NUMER" = _t, PRIORITY = _t, LINE = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"GROUP NAME", type text}, {"TICKET NUMER", type text}, {"PRIORITY", Int64.Type}, {"LINE", type text}}),
    Custom1 = #"Changed Type",
    #"Removed Other Columns" = Table.SelectColumns(Custom1,{"GROUP NAME"}),
    #"Removed Duplicates" = Table.Distinct(#"Removed Other Columns"),
    #"Added Custom" = Table.AddColumn(#"Removed Duplicates", "TICKET NUMER", each "3", type text),
    Custom2 = Table.Combine({#"Changed Type",#"Added Custom"}),
    #"Sorted Rows" = Table.Sort(Custom2,{{"GROUP NAME", Order.Ascending}, {"TICKET NUMER", Order.Descending}})
in
    #"Sorted Rows"

danextian_0-1683513614092.png

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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

Top Solution Authors