Hello,
I have a dataset that has columns for Year and the Week Number. I have a measure [MAX WEEK] that finds the maximum week number for the current year. I have checked and this measure correctly evaluates to 41 which is the max week from my data.
Max Week = max(Table1[Week_Num])
I try to use this measure to find rows with a Week Number equal to the MAX WEEK measure with the following custom column formula.
IN MAX WEEK? = if(Table1[Week_Num] = [MAX WEEK], "Yes","No")
In theory I should be able to use this column as a filter on my visuals to only see data for the last week, but it is not filtering anything. It seems like the measure MAX WEEK is evaluating at the row level when used in my custom column so it returns "Yes" for every row.
Is there any way to make sure my measure always returns the same value? Or to find the max of a column and reference it as a constant?