Forum Discussion
awsiya
2 years agoHelper I
IF(COUNTIF)
Hi PowerBI Community, I am facing a challenge with a DAX formula. I currently have an Excel formula, which I have included screenshot below. The formula is an IF(CountIF) formula. Essentially, I...
- 2 years ago
Hi awsiya
Add index column via PQand modify the formula to :
FirstAppearance =VAR CurrentValue = 'table'[value]RETURNIF (CALCULATE (COUNTROWS ('table'),FILTER ('table','table'[value] = CurrentValue&& 'table'[Index] <= EARLIER('table'[Index]))) = 1,1,0)If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
awsiya
2 years agoHelper I
It worked. Thank you so very much.