Forum Discussion
_google
Helper I
8 years ago3#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
Community Champion
8 years agoNot 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
Community Champion
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 )