Forum Discussion

abhiram342's avatar
abhiram342
Microsoft Employee
2 years ago
Solved

Convert Calculated Column to Measure

Hi All - I have table with Pipeline Information and want to convert calculated column into measure. Please Provide your suggestions. Table:PipelineRuns : this table contains pipeline information and...
  • Jihwan_Kim's avatar
    2 years ago

    Hi,

    I am not sure how your semantic model looks like, but please check the below picture and the attached pbix file if it suits your requirement.

     

     

     

    MaxPipelineDuration Measure: =
    MAXX (
        PipelineRuns,
        DATEDIFF ( PipelineRuns[StartDate], 'PipelineRuns'[FinishedDate], DAY )
    )