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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Generar series de números basados en otros valores de tabla

Hola a todos

Estoy teniendo datos como los siguientes,

EtiquetaEmpezarFinal
Coche13
Bicicleta15

Mi resultado esperado debería ser,

EtiquetaValor
Coche1
Coche2
Coche3
Bicicleta1
Bicicleta2
Bicicleta3
Bicicleta4
Bicicleta5

¿Alguien podría ayudarme a conseguir la mesa esperada?

Gracias

Deepak

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hola @deepaknarayank

Puede usar esta fórmula simple para crear una nueva tabla

New table =
SELECTCOLUMNS (
    FILTER (
        GENERATE (
            'Table',
            GENERATESERIES ( MIN ( 'Table'[Start] ), MAX ( 'Table'[End] ), 1 )
        ),
        [Value] >= [Start]
            && [Value] <= [End]
    ),
    "Label", [Label],
    "Value", [Value]
)

Resultado:

3.JPG

y aquí está el archivo pbix de muestra, por favor pruébelo.

saludos

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-lili6-msft
Community Support
Community Support

hola @deepaknarayank

Puede usar esta fórmula simple para crear una nueva tabla

New table =
SELECTCOLUMNS (
    FILTER (
        GENERATE (
            'Table',
            GENERATESERIES ( MIN ( 'Table'[Start] ), MAX ( 'Table'[End] ), 1 )
        ),
        [Value] >= [Start]
            && [Value] <= [End]
    ),
    "Label", [Label],
    "Value", [Value]
)

Resultado:

3.JPG

y aquí está el archivo pbix de muestra, por favor pruébelo.

saludos

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hola Lin,

Muchas gracias por su solución..

Esto funciona bien..

Gracias y saludos,

Deepak

FrankAT
Community Champion
Community Champion

Hola

abra Power Query y siga estos pasos:

// Table
let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45Wck4sUtJRMgRiY6VYnWglp8zsVKiAqVJsLAA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [Label = _t, Start = _t, End = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Label", type text}, {"Start", Int64.Type}, {"End", Int64.Type}}),
    #"Added Custom" = Table.AddColumn(#"Changed Type", "Series", each {[Start]..[End]}),
    #"Removed Other Columns" = Table.SelectColumns(#"Added Custom",{"Label", "Series"}),
    #"Expanded Series" = Table.ExpandListColumn(#"Removed Other Columns", "Series")
in
    #"Expanded Series"

11-03-_2020_11-14-05.png

Saludos FrankAT

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Top Solution Authors
Top Kudoed Authors