Forum Discussion
bbbt123
6 years agoHelper I
help with calculated column
Hello, I need help with a calculated column. I have a table, call it "Table1" with unique values per category, see example below: category value a 30 b 40 c 50 Then I have ...
- 6 years ago
I am thinking perhaps:
Column in Table2 = VAR __Category = [category] VAR __MinWeek = MINX(FILTER(ALL('Table2'),[category]=__Category),[week num]) RETURN IF([week num] = __MinWeek,LOOKUPVALUE('Table1'[value],'Table1'[category],__Category),BLANK())
Greg_Deckler
6 years agoCommunity Champion
I am thinking perhaps:
Column in Table2 =
VAR __Category = [category]
VAR __MinWeek = MINX(FILTER(ALL('Table2'),[category]=__Category),[week num])
RETURN
IF([week num] = __MinWeek,LOOKUPVALUE('Table1'[value],'Table1'[category],__Category),BLANK())