Hi, I am new PowerApps. I need your help. I want to build a chart to show number of associates joined on each year. In excel table, I have date of join field. I am using following query, but it is not giving me desire result (in fact showing some error - The GroupBy is having invalid argument. Expecting number, but having text value). Can you please help me by pointing out where I am doing wrong?
AddColumns(
GroupBy(
hctable,
Year(DateValue(Date_of_Join_Org)),
"joindate"
),
"Countofassociates",
CountRows(joindate)
)
Here, hctable is the table name, Date_of_Join_Org is the field having various dates in mm/dd/yyyy format.