Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Create new column checking on other columns data

Hello Community! I have a Table with the first 2 columns of the following example (ID and Time_1), and I need to add a third column (Time_2), in order to get something like this:   ID Time_1 ...
  • Greg_Deckler's avatar
    Greg_Deckler
    6 years ago

    Anonymous - Try this:

    Time_2 = 
        VAR __Time_1 = [Time_1]
        VAR __Num = COUNTROWS(FILTER('Table (18)',[ID]=EARLIER([ID])))
    RETURN
        __Time_1/__Num

    PBIX is attached below sig. Table (18).