Qlik Community

Qlik Sense App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

sarasmonu
New Contributor III

Metric Value not Displaying as expected

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

2 Replies
ogautier62
Valued Contributor II

Re: Metric Value not Displaying as expected

Hi,

what is not displayed as expected ?

could you attach a copy screen ?

regards

Highlighted

Re: Metric Value not Displaying as expected

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)


talk is cheap, supply exceeds demand
Community Browser