2 Replies Latest reply: Aug 30, 2018 5:37 AM by Gysbert Wassenaar RSS

    Metric Value not Displaying as expected

    Monu Saraswati

      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




        • Re: Metric Value not Displaying as expected
          Olivier GAUTIER



          what is not displayed as expected ?

          could you attach a copy screen ?



          • Re: Metric Value not Displaying as expected
            Gysbert Wassenaar

            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:



                 ...lots of fields....,



                 If(SubmitDate >= effectiveDate, 1, 0 ) as SubmitLargerEffective