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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
jdtobon88
Helper I
Helper I

Métrica basada solo en el filtro de mes/año

Saludos

 

La siguiente grafica presenta las ventas mensules por día, pero necesito que solo muestre los días del mes filtrado. Emeplo: si selecciono enero 2023 solo debe mostrar los datos de todos los días del mes seleccionado, pero lastimosamente no lo hace. esta es la medida que cree:

 

LineasMes = CALCULATE([TotalLineas] ,FILTER(listasPicking, MONTH(ListasPicking[FechaTurnos]) = MONTH(SELECTEDVALUE(ListasPicking[FechaTurnos]))))
 
captura hoy.png
 
 

 

 

 

2 REPLIES 2
amitchandak
Super User
Super User

@jdtobon88 , the best is to use a date table and time intelligence

 

but you can try like

LineasMes = CALCULATE([TotalLineas] ,FILTER(listasPicking, EOMONTH(ListasPicking[FechaTurnos],0) = EOMONTH(SELECTEDVALUE(ListasPicking[FechaTurnos],0))))

 

 

MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD('Date'[Date]))
last MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-1,MONTH)))
last month Sales = CALCULATE(SUM(Sales[Sales Amount]),previousmonth('Date'[Date]))
MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD('Date'[Date]))

 

Time Intelligence, Part of learn Power BI https://youtu.be/cN8AO3_vmlY?t=27510
Time Intelligence, DATESMTD, DATESQTD, DATESYTD, Week On Week, Week Till Date, Custom Period on Period,
Custom Period till date: https://youtu.be/aU2aKbnHuWs&t=145s

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

Gracias por su tiempo, 

 

aplique las medidas de:

LineasMes = CALCULATE([TotalLineas] ,FILTER(listasPicking, EOMONTH(ListasPicking[FechaTurnos],0) = EOMONTH(SELECTEDVALUE(ListasPicking[FechaTurnos],0))))

 

 

MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD('Date'[Date]))

 

Pero el resultado sigue sin ser el esperado.

 

como me puede ver en mi grafica con el calculo del MTD Sales solo puedo ver una columna al dia 30 de enero los datos acumulados y la idea es ver todos los dias del mes en barras. de nuevo si tengo seleccionado solo el día 10 de enero, quiero ver en las barras los dias 1 al 10 o en su defecto 1 al 31.

 

captura hoy.png

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.