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

Allexcept y slicer

¡Hola, chicos!

Creo que la solución no es difícil, pero todavía no puedo encontrarla. ¿Podría ayudarme?

La tarea - buscar promedio de medida por fecha filtrada perion en la tabla dinámica por cada objeto (objeto - filas, mes - columnas).

Para esto, utilizo dicha fórmula:

prueba: CALCULATE ( medida, ALLEXCEPT ( 'Calendario', 'Calendario'[Año] ))


y funciona bien, hasta que tengo que usar la cortadora de mes para cambiar el año completo a 10 meses, por ejemplo.

La "prueba" todavía calcula el promedio del año completo.
¿Cómo podría evitarlo? Y obtener promedio dinámico, depende de la elección de meses?

Lind to db: https://gofile.io/d/VLBPTf

Cómo debe ser (11 meses):

Ventas medias entre fechas
25 849,87
25 849,87
25 849,87
25 849,87
25 849,87
25 849,87
25 849,87
25 849,87
25 849,87
25 849,87
25 849,87
1 ACCEPTED SOLUTION

@KonstantinD

https://drive.google.com/file/d/1STDGBeSwvVf6ZUHqHOSFK4TYXmSmDlim/view?usp=sharing

Por favor, comparta Kudoes y marque esto como solución




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


View solution in original post

20 REPLIES 20
VijayP
Super User
Super User

@KonstantinD

Calculate(Measure,DATESBETWEEN(Dates[Date],MIN(Dates[Date]),MAX(Dates[Date]))

¡Por favor, prueba esto! ¡Por favor, comparte tus Kudoes!

Vijay Perepa




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Anonymous
Not applicable

hola @VijayP

Me alegro de verte

Lo intenté. Esta fórmula da la medida de cada mes.

Sin embargo, necesito encontrar una medida promedio en la elección del período usando la segmentación de datos.

Ok, prepararé los datos.

@KonstantinD

Pruebe esa medida lo que calcula es mostrar Promedio mediante el uso de la función PROMEDIO o AVERAGEX y luego incorporar en mi fórmula y espero que funcione! 👍




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Anonymous
Not applicable

hola @VijayP

datos añadidos y el resultado deseado en el encabezado.

¿Podrías echar una mano, por favor?

@KonstantinD

https://drive.google.com/file/d/1dhaLDcmJaJ4v-0iTTKV77sKtgfcm0V-l/view?usp=sharing

Por favor, encuentre el archivo adjunto con la solución. hágamelo saber si usted está buscando este




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Anonymous
Not applicable

@VijayP https://gofile.io/d/uBbbpZ

No, no funciona (

Debería funcionar como "Ventas medias por ejercicio" pero depender del filtro de fecha.

Por ejemplo, si elige 1-11 meses,

debe ser 25 849,87 en cada célula.

@KonstantinD

https://drive.google.com/file/d/17KnLGewTPZYq3pCqj3zFi_FGUfwmJeDe/view?usp=sharing

Creo que debería funcionar




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Anonymous
Not applicable

@VijayP

No, señor, no lo hace (

si funciona bien cuando se elige todos los meses

first.PNG

pero no lo hace, cuando se utiliza el filtro de fecha:

second.PNG

@KonstantinD

Está trabajando para mí.

VijayP_0-1600955600381.png




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Anonymous
Not applicable

final.PNGeso es lo que estoy hablando @VijayP

@KonstantinD

¿Esto servirá?

VijayP_0-1600957450246.png




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Anonymous
Not applicable

@VijayP parece.

podría u por favor compartir el pbix ?

@KonstantinD

https://drive.google.com/file/d/1STDGBeSwvVf6ZUHqHOSFK4TYXmSmDlim/view?usp=sharing

Por favor, comparta Kudoes y marque esto como solución




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Anonymous
Not applicable

@VijayP¡Muchas gracias!

su trabajo!

@KonstantinD

Por favor, comparta sus Kudoes, Muchos si es posible jajahah 😂




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


@KonstantinD

Creo que este es el enfoque.

VijayP_0-1600956339681.png




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Anonymous
Not applicable

Por favor, elija meses del 1 al 11 y verá que no funciona @VijayP

Anonymous
Not applicable

@VijayP 

i use such formula as measure:

SUMX(SUMMARIZE(table_1, object), CALCULATE(AVERAGEX('Calendar', CALCULATE(SUM(value), filter(table_2, category)))))
 
so, I get Average by columns and sum by rows.
 
What should I add to this formulla to get average value in every column ?
As I told before CALCULATE ( measure, ALLEXCEPT ( 'Calendar', 'Calendar'[Year] )) works good, but do wrong calculation when using dynamic month filter
 
Thats the problem

 

amitchandak
Super User
Super User

@KonstantinD , Trate si uno de estos puede funcionar

Este año: CALCULATE([Measure],DATESYTD(ENDOFYEAR('Date'[Date]),"12/31"))

Este año: CALCULATE([Measure],filter(ALL('Date'),'Date'[Year]-max('Date'[Year])))

Anonymous
Not applicable

hola @amitchandak

no hay fórmulas de trabajo, por desgracia.
Y además, no debe usarse sólo para el año actual / pasado.
Causa, la tabla dinámica también se filtra por años.

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.