Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
Solved! Go to Solution.
Hi,
For your issue, it is because DATESBETWEEN returns a range of date but not a single value.
So please try this calculated column:
Column = IF('Table'[Date] in DATESBETWEEN('Table'[Date],DATE(2020,1,15),DATE(2020,2,14)),1,0)
The result shows:
Hope this helps.
Best Regards,
Giotto Zhi
Hi,
For your issue, it is because DATESBETWEEN returns a range of date but not a single value.
So please try this calculated column:
Column = IF('Table'[Date] in DATESBETWEEN('Table'[Date],DATE(2020,1,15),DATE(2020,2,14)),1,0)
The result shows:
Hope this helps.
Best Regards,
Giotto Zhi
You could try and use FIRSTNONBLANK in your calculation like below
DateFlag =
IF(CALCULATE(FIRSTNONBLANK('Table'[date],'Table'[date]),
DATESBETWEEN( 'Table'[date],
DATE(2020,01,15),
DATE(2020,02,14))),
1,
0
)
Or without using DATESBETWEEN
DateFlag =
IF(
'Table'[date] >= DATE(2020,01,15) &&
'Table'[date] <= DATE(2020,02,14),1,0
)
@ajay_gajree are you sure you creating a column and not a measure? a measure wants an aggregation.
Proud to be a Super User!