I am new to DAX and i want to do a flag based on the time
the flag column is called "New", to determine whether is it new, Value YTD >0 and Value YTD Past Year is 0 or blank
my table
period | product | value YTD | value YTD Past Year |
202201 | Apple | 1000 | 0
202201 | Orange | 1000 | 0
202201 | Durian | 2033 | 100
output table
period | product | value YTD | value YTD Past Year | New
202201 | Apple | 1000 | 0 | 1
202201 | Orange | 1000 | 0 | 1
202201 | Durian | 2033 | 100 | 0
Any help is appreciated!