Forum Discussion
Ondra
7 years agoFrequent Visitor
Difference between FIRSDATE and FIRSTNONBLANK while getting next row value
Hello! I have a formula for a calculated column, which shows date of following row, like this: NextTariffDate = IF( crm_flat_fees[dateuntil] <> BLANK() && RELATED(crm_services[servicety...
- 7 years ago
Hi Ondra ,
If I understand your requirement correctly that you want to calculate the next row for serviceid.
You could create a group index column firstly with dax.
Then create the calculated column with the formula below.
Column = CALCULATE ( FIRSTNONBLANK('Table1'[serviceid],1), FILTER ( 'Table1', 'Table1'[Index] =EARLIER ('Table1'[Index] )-1 ) )Here is the output.
You could have a look at this blog to know more about FIRSTNOBLANK().
Best Regards,
Cherry
v-piga-msft
7 years agoResident Rockstar
Hi Ondra ,
If I understand your requirement correctly that you want to calculate the next row for serviceid.
You could create a group index column firstly with dax.
Then create the calculated column with the formula below.
Column =
CALCULATE (
FIRSTNONBLANK('Table1'[serviceid],1),
FILTER (
'Table1',
'Table1'[Index] =EARLIER ('Table1'[Index] )-1
)
)
Here is the output.
You could have a look at this blog to know more about FIRSTNOBLANK().
Best Regards,
Cherry
- Ondra7 years agoFrequent Visitor
Thanks! That's what I was looking for :)