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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
easyleesie
Helper I
Helper I

Crear promedio diario para el mes - nueva tabla

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?

1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@easyleesie

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]))

1.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

6 REPLIES 6
mwegener
Most Valuable Professional
Most Valuable Professional

Hola @easyleesie ,

¿Para qué necesita el resultado en una nueva tabla?
Eche un vistazo al archivo PBIX adjunto.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

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.

ryan_mayu
Super User
Super User

@easyleesie

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]))

1.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Gracias. Voy a replicar y te comento. 

amitchandak
Super User
Super User

@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])

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Muchas gracias. Voy a replicar y te comento.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Solution Authors
Top Kudoed Authors