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

Creación de un valor calculado fijo

Hola

Estoy intentando utilizar un valor calculado para mostrar los márgenes medios que se deben fijar para el año. Entonces deseo multiplicar este margen con valores de volumen mensuales.

Actualmente cuando intento hacer esto, uso el filtro de mes, pero luego en mi tabla se toma el margen promedio del mes seleccionado en lugar del margen promedio anual.

Deseo evitar hacer un valor de columna separado para cada mes con CALCULATE.

cualquier idea es bienvenida:)

Thansk

1 ACCEPTED SOLUTION
vanessafvg
Super User
Super User

Creo que probablemente se puede utilizar la función all() para traer de vuelta el año avg con un filtro.

si puede proporcionar algunos datos o el cálculo con una estructura de sus datos y lo que desea mostrar.




If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Diederikvdl, ambos deberían darte las ventas de este año

ESTE año CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(ENDOFYEAR('Date'[Date]),"12/31"))

Este año: CALCULATE(sum('order'[Qty]),filter(ALL('Date'),'Date'[Year]-max('Date'[Year])))
Last Year ? CALCULATE(sum('order'[Qty]),filter(ALL('Date'),'Date'[Year]-max('Date'[Year])-1))

Para obtener lo mejor de la función de inteligencia del tiempo. Asegúrese de que tiene un calendario de fechas y que se ha marcado como la fecha en la vista de modelo. Además, únase a ella con la columna de fecha de su/s hecho/s. Consulte:
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/

Vea si mi seminario web sobre Time Intelligence puede ayudar: https://community.powerbi.com/t5/Webinars-and-Video-Gallery/PowerBI-Time-Intelligence-Calendar-WTD-Y...


Apreciamos tus Felicitaciones.

vanessafvg
Super User
Super User

Creo que probablemente se puede utilizar la función all() para traer de vuelta el año avg con un filtro.

si puede proporcionar algunos datos o el cálculo con una estructura de sus datos y lo que desea mostrar.




If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




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.