Forum Discussion

TungNguyen_19's avatar
TungNguyen_19
Icon for Helper III rankHelper III
3 years ago
Solved

How to find and mark specific rows in conditional window function by DAX?

Hello everyone,

I have been stuck with this problem and I really need your help. Below I have this demo partition of my master table:

 

Now I have to mark 1 for all rows between VAN and LDFULL code by DAX, the rest will be marked 0. The result look like this:

 

I have try to combine functions  OFFSET with PARTITIONBY but all I just can do is finding next move base on Serial.

Please help me, many thanks to you guys

6 Replies