Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I have this data
Month | Revenue |
01/02/2022 | 0 |
01/03/2022 | 0 |
01/04/2022 | 0 |
01/05/2022 | 0 |
01/01/2023 | 300 |
I want this result , when the revenue is null, it takes the last not null value, any idea how to get this result, i tried peek it didin't work
Month | Revenue |
01/02/2022 | 300 |
01/03/2022 | 300 |
01/04/2022 | 300 |
01/05/2022 | 300 |
01/01/2023 | 300 |
You can use peek for this, but you need to make sure that your date get lloaded in the correct order.
Load
Month
If((Revenue > 0, Revenue, Peek('Revenue')) as Revenue
Resident Data
Order By Month (Desc);
You can use peek for this, but you need to make sure that your date get lloaded in the correct order.
Load
Month
If((Revenue > 0, Revenue, Peek('Revenue')) as Revenue
Resident Data
Order By Month (Desc);
Did you solve your issue or do you need more feedback on your question?