Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Team,
I have a Dimension and the corresponding metric is Sum({< SubmitDate = {">=$(=Date(effectiveDate))"}>}MetrologyRequest).
I see that only if the Dimension value is selected, the measure for the selected dimension is displayed else every dimension value shows as 0. Please let me know why is that happenng
Thanks,
Monu
Hi,
what is not displayed as expected ?
could you attach a copy screen ?
regards
The set of a set analysis expression is calculated at the chart level. At that level Date(effectiveDate) cannot return a result, because there are multiple possible values of effectiveDate. Only when you make a selection that results in only one possible effectiveDate value will you get a result. What you're problably trying to do is compare SubmitDate with effectiveDate for each row in your chart: sum(If(SubmitDate >= Date(effectiveDate), MetrologyRequest)). If both fields exists in the same table in your data model then you could create a flag field in that table and then use that field in your set analysis expression:
LOAD
...lots of fields....,
SubmitDate,
effectiveDate,
If(SubmitDate >= effectiveDate, 1, 0 ) as SubmitLargerEffective
FROM
....
sum({<SubmitLargerEffective={1}>}MetrologyRequest)