The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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!
User | Count |
---|---|
78 | |
74 | |
42 | |
32 | |
28 |
User | Count |
---|---|
104 | |
93 | |
52 | |
50 | |
46 |