Forum Discussion

Oscar's avatar
Oscar
Contributor
2 years ago

Current Quarter v Prior Quarter BI Viewer - A Summary Expression is Expected

Hi All-

We are trying to create a BI Viewer to compare Current v Previous Qtr OPEX.

We look at the end date (only two end dates possible of course) to create a Current QTR measure (max end date) as below. However, I can't seem to get the syntax for the measure correct. Not sure what I am missing which is generating the error below: A Summary Expression is Expected

 

 

  • JackLacava's avatar
    JackLacava
    Honored Contributor

    You're comparing a string or date [EndDate] with the True/false returned by [Scenario] == 'Actual'. I suspect you want something more like

    If( 
     ([EndDate] == max([EndDate]) ) 
       and ([Scenario] == 'Actual') , 
    [Amount], 0)

    This said, I don't remember if that Max() operations will actually work like you expect it to, nor whether you can actually use == like that.

    • Oscar's avatar
      Oscar
      Contributor

      Thank you for the reply ... I will attempt a different approach to group the data.