Forum Discussion

devika's avatar
devika
Helper II
3 years ago
Solved

Line graph to stop showing future Quarters

Hi All,   I have connected to Oracle SQL. I used Year and Quarter from the Date hierarchy for the X-axis. I haven't created a separate Date table. There is a data lag in the dataset. As you can see...
  • amitchandak's avatar
    3 years ago

    devika , Try like

     

    check =

    VAR MinDate = MinX(allselected(Date), [DATE])
    VAR MaxDate = MaxX(allselected(Date),DATE])
    RETURN
    CALCULATE(IF(MAX([DATE]) < MinDate || MAX([CASE_DATE]) > MaxDate,BLANK(),[answer]) )

  • devika's avatar
    3 years ago

    Thanks Amit, it works perfectly.