I am trying to use DatePart in a custom expression in Visualizer but keep getting the dreaded 'Unable to Apply Filter to Measure' error. I thought DatePart was the correct syntax to use but I must have lost my mind somewhere along the way…
This is the expression -
[Check Date: Sum: Time Record Item Hours] WHERE INTEGER(DatePart(Year,[Payroll Register Items.Check Date]))='2024'
I have tried with and without the INTEGER option. Same error.
Any assistance is always appreciated :)