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
pawlowski6132
Helper IV
Helper IV

Problema de DAX desafiante

Ok, he estado luchando con esto todo el día.

Tengo dos tablas: "Pronóstico" y "Días laborables".

La tabla 'Previsión' tiene mes y cantidad de previsión [Pronóstico FK].

La tabla "Días laborables" tiene [Fecha] e indicador de trabajo o no laborable [Día laborable]

Estoy tratando de escribir DAX (quiero una columna calculada) que:

1. Iterar la tabla Pronóstico y, para cada fila, evaluar el mes y encontrar el correspondiente [Pronóstico FK]

2. Para el mes de esa fila de la tabla Pronóstico, calcule los días laborables en función de la tabla "Días laborables".

3. Para cada mes, calcule el monto medio de pronóstico por día laborable

4. Rellene esa cantidad en la columna [avg_daily_fcst]

pawlowski6132_0-1605042646990.png

pawlowski6132_1-1605042687405.png

Thanx por adelantado.

Joe

1 ACCEPTED SOLUTION

Hola @pawlowski6132 ,

He inventado mis números de pronóstico, pero espero que ayude

Payeras_BI_0-1605081725344.png

Payeras_BI_0-1605084898355.png

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain

View solution in original post

5 REPLIES 5
pawlowski6132
Helper IV
Helper IV

I was able to replicate this and can confirm it works as described. I'll have some challenges because my dataset is a bit more complicated and I will have to modify to fit but, thanx SO much. I was missing the correct modeling and use of the RELATED function. You're the best. Thank you for taking the time to help me.

 

 

pawlowski6132
Helper IV
Helper IV

Claro, puedes ver las tablas de muestra en mi post original. Aquí hay algo de mi trabajo hasta ahora.

pawlowski6132_0-1605045173194.png

Hola @pawlowski6132 ,

He inventado mis números de pronóstico, pero espero que ayude

Payeras_BI_0-1605081725344.png

Payeras_BI_0-1605084898355.png

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain
PaulDBrown
Community Champion
Community Champion

@pawlowski6132

¿Alguna posibilidad de publicar una muestra de sus tablas para trabajar con ella?





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






pawlowski6132
Helper IV
Helper IV

Por ejemplo.

Pronóstico de febrero de 2021: 17.270 euros

Días laborables en febrero de 2021 17

Volumen medio por día laborable en febrero 1.016 euros

Ponga 1.016 para cada fila de día "Trabajando" donde Mes es Febraury.

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.