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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
krixtsup3r
Helper V
Helper V

Error de índice

Hola, chicos

Estoy recibiendo este error (imagen abajo) cuando intento actualizarlo en la web, pero si lo compruebo en el escritorio y luego lo actualo, no me da ningún error. ¿Hay alguna razón por la que sea eso?

index_error.PNG

¡Gracias!

1 ACCEPTED SOLUTION

@krixtsup3r - OK, este parece ser el mismo problema que aquí:

https://community.powerbi.com/t5/Service/Refresh-Error-in-PowerBI-Service-No-issue-refreshing-in-Des...

Cambie esto:

= Table.AddIndexColumn(#"Added Index", "Index.1", 0, 1, Int64.Type)

a esto:

= Table.AddIndexColumn(#"Changed Type", "Index", 0, 1)

Tal vez deshacerse de la Int64.Type? Espera, tal vez no le guste que usted clasifró las filas y no hizo un Table.Buffer? @v-deddai1-msft


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

9 REPLIES 9
Davidvarela
Regular Visitor

hi everybody, Please i need help with the next topic.

I have a querry and  I want to be able to transform a column with nested tables, I need to delete the columns that I do not need, but as some tables have more column than others, it sends me a message that does not find column 18 or some other that does not have another table, the querry is this, suddenly some suggestion. if I place it the missginfield.ignore sends me that other message
Table.TransformColumns(Headers, { "Data", each 
Table.RemoveColumns(_, Lista_Final),MissingField.Ignore })
Expression.Error: No se puede convertir el valor 1 al tipo Type.
Detalles:
Value=1
    Type=[Type]

Greg_Deckler
Super User
Super User

@krixtsup3r ¿Puede pegar el código del editor avanzado? El error dice que pasó demasiados argumentos, pero lo que llama sólo veo 4 argumentos y dice que hubo 5 pasados, así que tal vez necesita ver el código circundante para entender lo que está pasando.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
amitchandak
Super User
Super User

@krixtsup3r, ¿ha configurado algún programador para él? si es así, por favor compruebe cualquier error allí.

Puede comprobar y registrar un problema en -https://community.powerbi.com/t5/Issues/idb-p/Issues

Hola, chicos

Gracias por la respuesta:

@amitchandak, en realidad aún no he establecido ningún horario. Sólo traté de actualizarlo a petición y obtengo ese error.

@Greg_Deckler,aquí está mi código (ver más abajo), no estoy muy seguro de lo que está sucediendo. En el escritorio se actualiza bien, pero cuando lo actualo en el servicio obtengo el error.

let
    Source = Folder.Files("C:\Users\\Productivity Raw"),
    #"Removed Other Columns" = Table.SelectColumns(Source,{"Content"}),
    #"Filtered Hidden Files1" = Table.SelectRows(#"Removed Other Columns", each [Attributes]?[Hidden]? <> true),
    #"Invoke Custom Function1" = Table.AddColumn(#"Filtered Hidden Files1", "Transform File", each #"Transform File"([Content])),
    #"Removed Other Columns1" = Table.SelectColumns(#"Invoke Custom Function1", {"Transform File"}),
    #"Expanded Table Column1" = Table.ExpandTableColumn(#"Removed Other Columns1", "Transform File", Table.ColumnNames(#"Transform File"(#"Sample File"))),
    #"Changed Type" = Table.TransformColumnTypes(#"Expanded Table Column1",{{"name", type any}, {"productivity", type any}, {"job_count", type any}, {"total_review_time", type any}, {"total_research_time", type any}, {"total_inactive_time", type any}, {"queue", type any}, {"day", type any}, {"user_id", type any}}),
    #"Extracted Date" = Table.TransformColumns(#"Changed Type",{{"day", DateTime.Date, type date}}),
    #"Changed Type1" = Table.TransformColumnTypes(#"Extracted Date",{{"total_inactive_time", type number}, {"total_research_time", type number}, {"total_review_time", type number}, {"job_count", type number}, {"productivity", type number}}),
    #"Inserted End of Week" = Table.AddColumn(#"Changed Type1", "End of Week", each Date.EndOfWeek([day],1), type date),
    #"Inserted Start of Month" = Table.AddColumn(#"Inserted End of Week", "Start of Month", each Date.StartOfMonth([day]), type date),
    #"Removed Other Columns2" = Table.SelectColumns(#"Inserted Start of Month",{"day"}),
    #"Removed Duplicates" = Table.Distinct(#"Removed Other Columns2"),
    #"Sorted Rows" = Table.Sort(#"Removed Duplicates",{{"day", Order.Descending}}),
    #"Added Index" = Table.AddIndexColumn(#"Sorted Rows", "Index", 1, 1, Int64.Type),
    #"Renamed Columns" = Table.RenameColumns(#"Added Index",{{"Index", "IndexDaily"}}),
    #"Filtered Rows" = Table.SelectRows(#"Renamed Columns", each [day] <> null and [day] <> ""),
    #"Changed Type2" = Table.TransformColumnTypes(#"Filtered Rows",{{"IndexDaily", type number}})
in
    #"Changed Type2"

@krixtsup3r - OK, este parece ser el mismo problema que aquí:

https://community.powerbi.com/t5/Service/Refresh-Error-in-PowerBI-Service-No-issue-refreshing-in-Des...

Cambie esto:

= Table.AddIndexColumn(#"Added Index", "Index.1", 0, 1, Int64.Type)

a esto:

= Table.AddIndexColumn(#"Changed Type", "Index", 0, 1)

Tal vez deshacerse de la Int64.Type? Espera, tal vez no le guste que usted clasifró las filas y no hizo un Table.Buffer? @v-deddai1-msft


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

¡Funcionó! Muchas gracias.

@krixtsup3r Debe ser algún tipo de error que está sucediendo en el Servicio o algo así, ese problema parece ser muy reciente. Creo que agregaron la capacidad de especificar el tipo en el índice, pero aparentemente el servicio se perdió esa nota. ¿Leíste el memorándum?


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Por eso le pasó a 4 de mis proyectos de PBI.

Honestamente no he leído el memo, por lo general escaneo a través de las nuevas actualizaciones en cada mes. ¡Muchas gracias por tu ayuda, hombre!

@krixtsup3r No hay problema, estaba bromeando sobre el memo!! El Servicio necesita leer el memo!!


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.

Top Solution Authors