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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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))

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

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...

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
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))

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

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors
Top Kudoed Authors