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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

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.

June 2025 community update carousel

Fabric Community Update - June 2025

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