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

Gráfico de líneas de trazado del mes actual por día frente al promedio de los últimos N meses por día

Sample.png

Tratando de trazar un gráfico como el programa anterior con el recuento de la participación. Gráfico de líneas que muestra la participación en días antes y después de la fecha de vencimiento con una comparación con el promedio móvil de los mismos días de los últimos 3 meses.

Campos en el modelo de datos,

  • DueDate
  • ParticipaciónFecha
  • ReportingMonth
  • Userid

Estoy intentando replicar la siguiente tabla con DAX donde ParticipationDate es +-5 de DueDate.

Mes-5d-4d-3d-2d-1dDos1d2d3d4d5d
Ene'2020%22%25%28%35%50%80%90%95%95%96%
Feb'200%20%30%45%50%70%80%95%96%96%96%
Mar'2020%22%25%28%35%70%80%90%92%94%96%
Avearge13%21%27%34%40%63%80%92%94%95%96%
Abr'2020%30%40%50%65%85%
2 REPLIES 2
v-jayw-msft
Community Support
Community Support

Hola @powerbidude ,

¿Es la última tabla una tabla de hechos en el modelo o el resultado que desea obtener?

Saludos

Jay

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

Es el resultado que estoy tratando de obtener.

Aquí está el DAX que he conseguido hasta ahora, para la participación acumulada durante el mes actual. Sin embargo, no funciona bien si se seleccionan meses anteriores.

Porcentaje de participación ?
Dividir (
Calcular (
COUNTROWS ( MyTable ),
Filtro (
ALLSELECTED ( MyTable ),
MyTable[ParticipationDate] <-LASTDATE ( MyTable[ParticipationDate] )
),
MyTable[TimeReportStatus] á "Complete",
ALLSELECTED ( MyTable[ReportName] ),
DATESINPERIOD (
'MyTable'[ParticipationDate],
LASTDATE ( MyTable[ParticipationDate] ),
-30,
Día
)
),
Calcular (
COUNTA ( 'MyTable'[Iniciar sesión] ),
ALLSELECTED ( 'MyTable'[ReportMonth], MyTable[ParticipationDate] )
)

Datos de muestra:

ReportMonthReportStartDateReportEndDateReportDueDateIniciar sesiónParticipaciónFecha
Abr-204/1/20204/30/20205/1/2020Arya4/30/2020
Mar-203/1/20203/31/20204/1/2020John3/30/2020
Mar-203/1/20203/31/20204/1/2020Theon3/30/2020
Abr-204/1/20204/30/20205/1/2020Salvado4/27/2020
Abr-204/1/20204/30/20205/1/2020Tywin4/28/2020
Mar-203/1/20203/31/20204/1/2020Arya3/31/2020
Mar-203/1/20203/31/20204/1/2020Salvado3/24/2020
Mar-203/1/20203/31/20204/1/2020Sansa3/26/2020
Mar-203/1/20203/31/20204/1/2020Jaime4/2/2020
Mar-203/1/20203/31/20204/1/2020Tyrion3/31/2020

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.