Forum Discussion

AVGUser_PBI's avatar
AVGUser_PBI
Helper I
2 years ago
Solved

Create a custom column by adding two conditions

Hello everyone!   below is a table I have:     I am trying to add custom columns that shows values as shown below in yellow:   I am trying power query as shown below: custom column...
  • smpa01's avatar
    2 years ago

    AVGUser_PBI  Try this to see if it works

     

    each(

    (each if([effective_date] < #datetime(2023,1,1,0,0,0) and [attribute] = "recorded") then [Value] else 0)

    +

    (each if([capture_date] = #datetime(2023,1,1,0,0,0) and [attribute] = "estimated") then [Value] else 0)

    )