Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have a calculation that needs filtered using set analysis when its displayed in a table box. The calculation is created in the Load Script:
A-B = 'Days Old'
How can I setup the set analysis syntax correctly in the table box expression?
This is not working:
{$<[Group] = {"Int", "Stone"}>}[Days Old]
Set analysis works only in aggregation expressions, e.g. sum(), count(), max(), etc. In your case it is probably
avg({$<[Group] = {'Int', 'Stone'}>}[Days Old])
or
only({$<[Group] = {'Int', 'Stone'}>}[Days Old])
But this is just my guess.
And, as sunindia pointed out, you can't do it in a table box.
table box doesn't allow for expressions. Are you talking about a straight table expression?
Best,
Sunny
Kindly write the full expression
Yes I'm talking about a straight table
I included the expression. Its simply the field pulled into the expression. perhaps this isn't the correct way to do this.
{$<[Group] = {"Int", "Stone"}>}[Days Old]
May be a Sum/Count/Min/Max({$<[Group] = {"Int", "Stone"}>}[Days Old])
Set analysis works only in aggregation expressions, e.g. sum(), count(), max(), etc. In your case it is probably
avg({$<[Group] = {'Int', 'Stone'}>}[Days Old])
or
only({$<[Group] = {'Int', 'Stone'}>}[Days Old])
But this is just my guess.
And, as sunindia pointed out, you can't do it in a table box.