Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hello community
I am having the below issue:
DAX comparison operations do not support comparing values of type Date with values of type Text. Consider using the VALUE or FORMAT function to convert one of the values.
I want to create a new column that checks if something (Clearing Date) happened between a period of 2 dates (Start reporting & End Reporting), in case of True return a text column with the responsible HUB and if false just type "Non Scope"
HUB_Scope =
IF (
T_[Clearing Date]
>= RELATED ( T_Mapping[Start Reporting] ) & T_[Clearing Date]
<= RELATED ( T__Mapping[End Reporting] ),
RELATED ( T_Mapping[HUB_SCOPE] ),
"NON SCOPE"
)
Clearing Date. Start Reporting and End Reporting are Dates but HUB_Scope isnt.
How can I can I make work the above formula ??
Thanks
Solved! Go to Solution.
You're using & which is the concatenation operator, you need to use && which is logical AND.
HUB_Scope =
IF (
T_[Clearing Date] >= RELATED ( T_Mapping[Start Reporting] )
&& T_[Clearing Date] <= RELATED ( T__Mapping[End Reporting] ),
RELATED ( T_Mapping[HUB_SCOPE] ),
"NON SCOPE"
)
You're using & which is the concatenation operator, you need to use && which is logical AND.
HUB_Scope =
IF (
T_[Clearing Date] >= RELATED ( T_Mapping[Start Reporting] )
&& T_[Clearing Date] <= RELATED ( T__Mapping[End Reporting] ),
RELATED ( T_Mapping[HUB_SCOPE] ),
"NON SCOPE"
)
Oh my... thank you very much 😊
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 8 | |
| 7 | |
| 6 |