Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
There is error for the below Column, please advise if MONTH (TODAY()) and YEAR (TODAY()) can't be used here.
Error message:
DAX comparison operations do not support comparing values of type Text with values of type Integer.
Consider using the VALUE or FORMAT function to convert one of the values.
Flag = IF(Table[Due_Date]=BLANK(),1,
IF(OR(AND(Table[Due_Date].[Month]=MONTH(TODAY()),Table[Due_Date].[Year]=YEAR(TODAY())),
TODAY()<Table[Due_Date]),
0,1))
Solved! Go to Solution.
@PBI_newuser , Try like
Flag = IF( isblank(Table[Due_Date]),1,
IF(OR(AND( month(Table[Due_Date])=MONTH(TODAY()),year(Table[Due_Date])=YEAR(TODAY())),
TODAY()<Table[Due_Date]),
0,1))
Hope due_date is identified as date
Table[Due_Date].[Month] will return Month Name and MONTH(TODAY()) will return the Month Number and they cannot be compared.
Therefore do a comparison between MONTH(Table[Due_Date]) and MONTH(TODAY()) because they both would return Numbers.
Table[Due_Date].[Month] will return Month Name and MONTH(TODAY()) will return the Month Number and they cannot be compared.
Therefore do a comparison between MONTH(Table[Due_Date]) and MONTH(TODAY()) because they both would return Numbers.
@PBI_newuser , Try like
Flag = IF( isblank(Table[Due_Date]),1,
IF(OR(AND( month(Table[Due_Date])=MONTH(TODAY()),year(Table[Due_Date])=YEAR(TODAY())),
TODAY()<Table[Due_Date]),
0,1))
Hope due_date is identified as date
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
85 | |
66 | |
51 | |
45 |
User | Count |
---|---|
216 | |
89 | |
82 | |
66 | |
57 |