Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi, I got an error for the below column. How to correct it?
A date column containing duplicate dates was specified in the call to function 'ENDOFMONTH'. This is not supported.
Flag =
if(AND (MONTH(Append[Travel Date])=MONTH(Append[Restoration Date]) , YEAR(Append[Travel Date])=YEAR(Append[Restoration Date])),1,
if(AND( Append[Travel Date] = ENDOFMONTH(Append[Travel Date]) ,
(((Year(Append[Restoration Date])-Year(Append[Travel Date]))*12) + Month(Append[Restoration Date])-Month(Append[Travel Date]))<=1),1,0))
Solved! Go to Solution.
@PBI_newuser ,based on what I got try like
if(eomonth(Append[Travel Date],0)=eomonth(Append[Restoration Date].0) ,1,
if(AND( Append[Travel Date] = eomonth(Append[Travel Date],0) ,
(datediff(Append[Restoration Date], Append[Travel Date], month)<=1),1,0)))
Hi @PBI_newuser ,
Or is this what you want?
Flag =
IF(
MONTH([Travel Date]) = MONTH([Restoration Date]) && YEAR([Travel Date]) = YEAR([Restoration Date]),
1,
IF(
[Restoration Date] = ENDOFMONTH('Append'[Travel Date]) && DATEDIFF([Restoration Date], [Travel Date], MONTH ) <=1,
1, 0
)
)
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@PBI_newuser ,based on what I got try like
if(eomonth(Append[Travel Date],0)=eomonth(Append[Restoration Date].0) ,1,
if(AND( Append[Travel Date] = eomonth(Append[Travel Date],0) ,
(datediff(Append[Restoration Date], Append[Travel Date], month)<=1),1,0)))
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 52 | |
| 38 | |
| 37 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 65 | |
| 39 | |
| 33 | |
| 23 |