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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |