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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Top Solution Authors
Top Kudoed Authors