Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hola a todos
Tengo una tabla con valores diarios:
1 Ene: 10
3 Ene: 15
4 Ene: 20
etcetera
Me gustaría tener una nueva mesa con
Ene: promedio para la tabla anterior (en este caso 15)
¿Cómo hago esto?
Solved! Go to Solution.
En función de los datos de ejemplo que haya proporcionado, puede probar esto para crear una nueva tabla.
Table 2 =
VAR tbl=ADDCOLUMNS('Table',"Month",FORMAT('Table'[date],"mmm"))
return SUMMARIZE(tbl,[Month],"average",AVERAGE('Table'[value]))
Proud to be a Super User!
Hola @easyleesie ,
¿Para qué necesita el resultado en una nueva tabla?
Eche un vistazo al archivo PBIX adjunto.
Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials
Vi tu archivo, muchas gracias. Sin embargo puede existir la necesidad de tener control sobre los resultados (el Promedio, Acumulados, etc), que aquí no se expone. No omito señalar que tu aportación apoya. En mi caso no me apoya.
En función de los datos de ejemplo que haya proporcionado, puede probar esto para crear una nueva tabla.
Table 2 =
VAR tbl=ADDCOLUMNS('Table',"Month",FORMAT('Table'[date],"mmm"))
return SUMMARIZE(tbl,[Month],"average",AVERAGE('Table'[value]))
Proud to be a Super User!
Gracias. Voy a replicar y te comento.
@easyleesie , Supongamos que tiene fecha en la tabla. Tener un mes año en su mesa o tabla de fechas
Año del mes á formato([fecha],"AAAAMM")
Pruebe una medida como
Averagex(Summarize(filter(Table, Month(Table[Date])-1),Table[Month Year], "_1", Sum(Table[Value])),[_1])
Muchas gracias. Voy a replicar y te comento.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.