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
zaidkhusain
Helper I
Helper I

Cómo contar el mes actual y el mes anterior con Slicer

Hallo all

Por favor, necesita su ayuda mi cliente quiere mostrar la imagen como abajo

zaidkhusain_0-1596001256909.png

pero quieren allí una cortadora. He probado esto, pero en el mes anterior siempre espacios en blanco cuando elijo en la cortadora amablemente ayudar

Gracias

Zaid

3 REPLIES 3
amitchandak
Super User
Super User

@zaidkhusain , Pruebe con la tabla de fechas

Ventas MTD: CALCULATE(SUM(Sales[Sales Amount]),DATESMTD('Date'[Date]))
Last MTD Sales - CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-1,MONTH)))

Power BI — Preguntas MTD — Time Intelligence 3–5
https://medium.com/@amitchandak.1978/power-bi-mtd-questions-time-intelligence-3-5-64b0b4a4090e

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.

resuelto gracias compañero @amitchandak @ryan_mayu

ryan_mayu
Super User
Super User

@zaidkhusain

¿Cuál es la medida que está utilizando?

¿Tienes una tabla de calendario?

selectPM = CALCULATE(sum('Table'[amount]),DATEADD('datetime'[Date],-1,MONTH))

1.PNG





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

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.