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

Representación de una variable agrupada en un objeto visual no agrupado

Hola a todos

Estoy tratando de representar la lluvia total de diferentes eventos a lo largo del eje de tiempo (según la imagen y la tabla en la parte inferior). Por lo tanto, cuando se inicia un evento, debe representar la precipitación total de ese evento hasta que finalice el evento.

He intentado con la función de guión a continuación, pero no estoy recibiendo los resultados de los deseos. ¿Alguien tendría alguna idea de lo que estoy haciendo mal?

Muchas gracias,

Medidas ?
Var MinTime á minx(addcolumns(summarize(TblRG,TblRG[Event Group]),"MinT",calculate(min(TblRG[Time]),all(TblRG[Time]))),[MinT])
Var MaxTime á maxx(addcolumns(summarize(TblRG,TblRG[Event Group]),"MaxT",calculate(max(TblRG[Time]),all(TblRG[Time]))),[MaxT])
devolución

CALCULAR (SUMA
(TblRG[Rain mm]),
FILTRO (
all(TblRG[Time]),
TblRG[Tiempo] > MinTime
&& TblRG[Tiempo] <-MaxTime
)
)
devolución

CALCULAR (SUMA
(TblRG[Rain mm]),
FILTRO (
all(TblRG[Time]),
TblRG[Tiempo] > MinTime
&& TblRG[Tiempo] <-MaxTime
)
)

HoraLluvia mmGrupo de eventos
111
221
311
400
500
612
742
822
912
1000
1100
1200
1300
1400

Capture.PNG

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

@Galonsonavajo - Si entiendo esto correctamente, pruebe esta medida:

Measure =
  VAR __EventGroup = MAX([EventGroup])
RETURN
  SUMX(FILTER(ALL('Table'),[Event Group]=__EventGroup),[Rain mm])

Véase el PBIX adjunto a continuación sig, Tabla (20), Medida 20.

Greg_Deckler_0-1599397419312.png


@ 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

2 REPLIES 2
amitchandak
Super User
Super User

@Galonsonavajo , Puede tener una nueva columna como

Columna á maxX(filter(Allselected(Table), Table[Event Group] ?earlier(Table[Event Group])),Table[Rain])

o medir como

measure- calculate(max(Table[Rain]), allexcept(Table, Table[Event Group]))

O

measure- calculate(max(Table[Rain]), filter(Allselected(Table), Table[Event Group] á max(Table[Event Group])))

Greg_Deckler
Super User
Super User

@Galonsonavajo - Si entiendo esto correctamente, pruebe esta medida:

Measure =
  VAR __EventGroup = MAX([EventGroup])
RETURN
  SUMX(FILTER(ALL('Table'),[Event Group]=__EventGroup),[Rain mm])

Véase el PBIX adjunto a continuación sig, Tabla (20), Medida 20.

Greg_Deckler_0-1599397419312.png


@ 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.