Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
cgT
Creator
Creator

Error With Calculated Dimension

=date(if(PerformanceWeekCommencing = {'>=$(=WeekStart(Today()-7))'}, PerformanceWeekCommencing), 'DD/MM/YY')

Hi,

I am trying to using the above set analysis in a calculated dimension. However, the expression editor is returning "Error in expression: ')' expected".

I can't see why, though. From what I can see the syntax is correct.

Thank you 

Labels (3)
1 Solution

Accepted Solutions
Or
MVP
MVP

That syntax is not correct. You're trying to use set analysis in a context that does not accept set analysis (and your set analysis would be incorrect in any case, I think).

if(PerformanceWeekCommencing >= WeekStart(Today()-7),PerformanceWeekCommencing)

View solution in original post

2 Replies
Or
MVP
MVP

That syntax is not correct. You're trying to use set analysis in a context that does not accept set analysis (and your set analysis would be incorrect in any case, I think).

if(PerformanceWeekCommencing >= WeekStart(Today()-7),PerformanceWeekCommencing)
Lakshmanan
Partner - Contributor III
Partner - Contributor III

If you want apply Set analysis on Dimension : aggr(ONLY({<YEAR={'2023'}>}Id),ID)

 

Please mark as resolved if it solved the issue.