Forum Discussion

AI14's avatar
AI14
Helper III
3 years ago
Solved

Show/Hide data row based on condition

Hi

 

i want to on show data where the Var data is higher than the target finish data.

 

however the problem is that the target finish is entered data and the var data is calculated using :

DATEDIFF(MIN(LIVE[scheduled_finish]),MIN(CLEAN[actual_finish]),MINUTE)

 

please help, even if it means doing my calculations again.

 

DEP TIMESCHEDULED FINISHACTUAL FINISHVarTARGET FINISH
06:5005:5005:45-65-60
07:5006:5006:500-60
07:5007:4007:41-9-10
09:5509:3009:10-25-45
  • hi AI14 

    target finish can be calculated similarly, what do you mean by entered data?

     

    if this is irrelevant, you can write a measure like this:

    Measure =

    IF([Var]>[Target Finish], 1)

     

    and feed the measure to the filter pane of the table visual, and choose equal to 1.

4 Replies

  • hi AI14 

    target finish can be calculated similarly, what do you mean by entered data?

     

    if this is irrelevant, you can write a measure like this:

    Measure =

    IF([Var]>[Target Finish], 1)

     

    and feed the measure to the filter pane of the table visual, and choose equal to 1.

    • AI14's avatar
      AI14
      Helper III

      Hi FreemanZ 

       

      The Actual finish time and shceduled finish time was in date/time format and i used the above dax formula to make the var look like this: -45 format.

      the target finish is data i entered in excel and imported so the format is already there

       

      i tried the formula but got this message:

       

      • FreemanZ's avatar
        FreemanZ
        Super User

        hi AI14 

        are you solving it with calculated column?

        How LIVE and CLEAN are related?