Forum Discussion
Anonymous
2 years agoNot applicable
custom index for column
Hello I am in need of a little help. I have a data sheet wich describes 1600 different objects (1 object per row). Each object has a different logical ID (such as: A-01-01-01, A-01-01-02 etc...)....
- 2 years ago
Hi, Anonymous
You can use DAX RANKX() func to achieve you goal.
refer: https://learn.microsoft.com/en-us/dax/rankx-function-dax
sample DAX idea:
Custom Index = VAR CurrentLogicalID = [Logical ID] VAR CurrentDynamic = [Dynamic] VAR StaticCount = COUNTROWS(FILTER(YourTable, YourTable[Dynamic] = "False")) RETURN IF(CurrentDynamic = "False", "False", StaticCount + RANKX(FILTER(YourTable, YourTable[Dynamic] = "True"), [Logical ID], , ASC) + 5)also I found some thread that would help you give idea,
rubayatyasmin
Community Champion
2 years agoHi, Anonymous
You can use DAX RANKX() func to achieve you goal.
refer: https://learn.microsoft.com/en-us/dax/rankx-function-dax
sample DAX idea:
Custom Index =
VAR CurrentLogicalID = [Logical ID]
VAR CurrentDynamic = [Dynamic]
VAR StaticCount = COUNTROWS(FILTER(YourTable, YourTable[Dynamic] = "False"))
RETURN
IF(CurrentDynamic = "False", "False", StaticCount + RANKX(FILTER(YourTable, YourTable[Dynamic] = "True"), [Logical ID], , ASC) + 5)
also I found some thread that would help you give idea,