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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Parámetro de fecha como Tableau

Hola Equipo,

Tengo dos parámetros de fecha 1. Fecha de inicio y 2. Fecha de finalización, ambas son fechas y deben usarse en la fórmula siguiente para obtener recuentos. He creado una tabla de fechas como se muestra a continuación, pero no puedo usarlas en mi fórmula. por favor sugiera.

Formual -: Recuentos planificados FY - IF(VW_FI_FREC_InvCount[Fecha de recuento planificado] > á VW_FI_FREC_InvCount[StartDate] && VW_FI_FREC_InvCount[Fecha de recuento planificada] < VW_FI_FREC_InvCount[EndDate] ,
IF(YEAR(VW_FI_FREC_InvCount[Planned Count Date]) á YEAR(VW_FI_FREC_InvCount[EndDate]) && YEAR(VW_FI_FREC_InvCount[Planned Count Date]) á YEAR(VW_FI_FREC_InvCount[EndDate]), 1, 0))
Fórmula de la tabla de fechas ?
Fecha de inicio: CALENDARIO("01/01/2015", HOY())
Gracias.
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@shilpikumari_11 , así es como puede utilizar dos fechas seleccionadas en segmentación de datos

Medida ?
var _max á maxx(allselected('Date'),'Date'[Date])
var _min á minx(allselected('Fecha'),'Fecha'[Fecha])
devolución
calculate(count(Table[value]),filter(All(Table),Table[date] <-_max && Table[account creation date] >-_min))

Medida ?
var _max á maxx(allselected('Date'),'Date'[Date])
var _min á minx(allselected('Fecha'),'Fecha'[Fecha])
devolución
calculate(count(Table[value]),filter(Allselected(Table),Table[date] <-_max && Table[date] >-_min))

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@shilpikumari_11 , consulte si este blog puede ayudarle a tratar dos fechas

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak Gracias, pero mi origen de datos no tiene fecha de inicio y finalización, solo el usuario solo debe establecer un intervalo de fechas personalizado que se utilizará como referencia en el filtro para filtrar cierto período.

amitchandak
Super User
Super User

@shilpikumari_11 , así es como puede utilizar dos fechas seleccionadas en segmentación de datos

Medida ?
var _max á maxx(allselected('Date'),'Date'[Date])
var _min á minx(allselected('Fecha'),'Fecha'[Fecha])
devolución
calculate(count(Table[value]),filter(All(Table),Table[date] <-_max && Table[account creation date] >-_min))

Medida ?
var _max á maxx(allselected('Date'),'Date'[Date])
var _min á minx(allselected('Fecha'),'Fecha'[Fecha])
devolución
calculate(count(Table[value]),filter(Allselected(Table),Table[date] <-_max && Table[date] >-_min))

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

May 2025 Monthly Update

Fabric Community Update - May 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors