Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I am trying to convert this into set expression. Is there a way to do it?
if([Pull Type]='M' or [As of Date] = '$(vmaxDate)', [As of Date])
Cheers!
I am using a bar chart, where dimension is if([Pull Type]='M' or [As of Date] = '$(vmaxDate)', [As of Date])
and expression is count(ID)
I want Date where [Pull type] = 'M' or [As of Date] = max([As of Date])
May be this:
=Concat(DISTINCT {<[Pull Type] = {'M'}> + <[As of Date] = {"$(=Date(Max([As of Date]), 'YourDateFieldFormat'))"}>} [As of Date])
Not working
Dimension :
Aggr(Only({$<[Pull Type] = {'M'} + [As of Date] = {"$(vmaxDate)"}>} [As of Date]),[As of Date] )
Expression : count(ID)
If its your dimension, try this:
=Aggr(Only({<[Pull Type] = {'M'}> + <[As of Date] = {"$(=Date(Max([As of Date]), 'YourDateFieldFormat'))"}>} [As of Date]), [As of Date])
What is + sign doing there?
+ gives the union of the sets
Checkout page number 4 of the attached PDF.
Chaitanya,
This expression is working with minor changes.
Aggr(Only({$<[Pull Type] = {'M'}> + <[As of Date] = {"$(vmaxDate)"}>} [As of Date]),[As of Date] )
Thank You Sunny and Chaitanya
Cheers!
We are glad to help Varun