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
Anonymous
Not applicable

grupo por tabla

Hola

Tengo una mesa A y quiero hacer una nueva mesa de la A a la B.

Quiero obtener en la tabla B el valor máximo de los resultados de la columna para cada identificador. También para este máximo en particular quiero obtener el valor de las columnas de umbral y número.

Traté de hacer un "grupo por" en el modelado --> nueva tabla. Obtuve la columna max (results)per id pero no sé cómo obtener la información de relevent de la columna de otros "umbral" y "número" a la tabla B.

Adjuntó aquí el ejemplo.

Muchas gracias

exemple.png

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

@enath_nakash - Prueba:

Table (22)B = 
  ADDCOLUMNS(
    SUMMARIZE('Table (22)',[id],"max",MAX('Table (22)'[results])),
    "threshold",MAXX(FILTER('Table (22)',[id]=EARLIER([id])&&[results]=[max]),[threshold]),
    "number",MAXX(FILTER('Table (22)',[id]=EARLIER([id])&&[results]=[max]),[number])
  )

Verificé esto en el PBIX adjunto a continuación sig. Cuadro (22) y cuadro (22)B.


@ 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

4 REPLIES 4
amitchandak
Super User
Super User

@enath_nakash ,

Tabla B-summarize(tableA, tableA[ID], "Max Result" , max(TableA[result]),"thershold", firstnonblank(Table[thershold],blank()),"number", firstnonblank(Table[number],blank()))

Anonymous
Not applicable

Hola

Gracias por su ayuda, pero no funciona. el máximo está bien, pero el Umbral y la columna de número sólo están en blanco.

Greg_Deckler
Super User
Super User

@enath_nakash - Prueba:

Table (22)B = 
  ADDCOLUMNS(
    SUMMARIZE('Table (22)',[id],"max",MAX('Table (22)'[results])),
    "threshold",MAXX(FILTER('Table (22)',[id]=EARLIER([id])&&[results]=[max]),[threshold]),
    "number",MAXX(FILTER('Table (22)',[id]=EARLIER([id])&&[results]=[max]),[number])
  )

Verificé esto en el PBIX adjunto a continuación sig. Cuadro (22) y cuadro (22)B.


@ 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...
Anonymous
Not applicable

¡Muchas gracias! se enoba!

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.