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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.

Reply
Anonymous
Not applicable

Calcular ventas de trimestres estáticos

¡Hola expertos! 🤗

Estoy tratando de crear una tabla que tenga unverage quarter ventas desde julio'2018, hasta hoy


Así que tendría algo así:

JAS'18 (julio, agosto y sep)OND'18 (oct, nov & dec)JFM'19AMJ'19
VentasXxxxXxxxxXxxxXxxxx

Sin embargo, sihen aplico mis fórmulas, los mismos datos mostrados para dos trimestres diferentes, como below:

photot.PNG
yt hese son las fórmulas que utilicé:

JAS'19 - CALCULATE(SUM('BASE_SELL_OUT (2)'[Sell Out(MSU)]),DATESINPERIOD(Amonth[AMonth],07/01/2019,2,MONTH))/3
OND'19 - CALCULATE(SUM('BASE_SELL_OUT (2)'[Sell Out(MSU)]),DATESINPERIOD(Amonth[AMonth],10/01/2019,2,MONTH))/3

t lo único que cambié fue el mes de inicio, por lo que cambiaría el trimestreYa tengo una tabla de datos de mes independiente.
¿Podrías ayudarme a resolver esto?
Gracias 🙂
1 ACCEPTED SOLUTION
DataInsights
Super User
Super User

@yohandipt, intente ajustar la fecha en una función FECHA:

JAS'19 =
CALCULATE (
    SUM ( 'BASE_­SELL_OUT (2)'[Sell Out(MSU)] ),
    DATESINPERIOD ( Amonth[AMonth], DATE ( 2019, 07, 01 ), 2, MONTH )
) / 3





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

Proud to be a Super User!




View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@yohandipt , debe probar Datesqtd si es posible con la tabla de fechas.

QTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESQTD(('Date'[Date])))
Last QTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESQTD(dateadd('Date'[Date],-1,QUARTER)))

Last complete QTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESQTD( ENDOFQUARTER(dateadd('Date'[Date],-1,QUARTER))))
Last to last QTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESQTD(dateadd('Date'[Date],-2,QUARTER)))

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, únete a ella con la columna de fecha de tus hechos. recomienda:
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.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
DataInsights
Super User
Super User

@yohandipt, intente ajustar la fecha en una función FECHA:

JAS'19 =
CALCULATE (
    SUM ( 'BASE_­SELL_OUT (2)'[Sell Out(MSU)] ),
    DATESINPERIOD ( Amonth[AMonth], DATE ( 2019, 07, 01 ), 2, MONTH )
) / 3





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

Proud to be a Super User!




Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Kudoed Authors