Forum Discussion
_google
8 years agoHelper I
3#DAX : FIND ROW NUMBER BASED ON CRITERIA
Hi Experts Reaching out again for the DAX formula to arrive at calcuated formula to find the row number based on Criteria. For example Attrribute is valid if the marked as "Yes" in the source ...
- 8 years ago
May be you can use this Column
Column = VAR myrank = RANKX ( FILTER ( TableName, TableName[Is Valid] = "Yes" ), TableName[Attribute], , ASC, DENSE ) RETURN IF ( TableName[Is Valid] = "Yes", myrank )
Greg_Deckler
8 years agoCommunity Champion
Not understanding what you are going for here but I can say that you probably need to add an Index column in Power Query to your query.
Zubair_Muhammad
8 years agoCommunity Champion
May be you can use this Column
Column =
VAR myrank =
RANKX (
FILTER ( TableName, TableName[Is Valid] = "Yes" ),
TableName[Attribute],
,
ASC,
DENSE
)
RETURN
IF ( TableName[Is Valid] = "Yes", myrank )