I am new on DAX language, perfect if you can help
I have this code , that's give the error that we can't apply format on Treatas.
EVALUATE
SUMMARIZE(
TREATAS(
VALUES(ADDCOLUMNS('Calendar', "FormattedDate", FORMAT([DateCol], "yyyy-MM-dd"))),
ADDCOLUMNS(Contact, "FormattedDate", FORMAT(Contact[Date of Birth, "yyyy-MM-dd"))
),
[FormattedDate],
"Count of ", DISTINCTCOUNT(Contact[Id])
)
Error : Query (5, 9) Function TREATAS expects a fully qualified column reference as argument number 2.
I am doing format, because calendar[Datecol] is date and the column Contact[Date of Birth] is dateTime