Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Oceans88
Helper III
Helper III

Concatenate rows / ID Creation / Calculated Column

Hello All,

 

Im trying to create an ID for "Cycle.Name" from the "Rank" column. As you can see below, there is some concatenation going on but its not in the correct order and same ID is getting repeated over and over again regardles of "Cycle.Name". i would like if possible to have ID in same row order of rank top to bottom as well as a unique ID per "Cycle.Name"

Please vew below, I will also include my current DAX for "CycleID.AGGR"

Thank you for any possible help.

 

CycleID.AGGR = 
CONCATENATEX(FILTER(SUMMARIZE('55.Table.Cycle.Aggregation','55.Table.Cycle.Aggregation'[Cycle.Name],'55.Table.Cycle.Aggregation'[Rank]),'55.Table.Cycle.Aggregation'[Cycle.Name]=EARLIER('55.Table.Cycle.Aggregation'[Cycle.Name])),'55.Table.Cycle.Aggregation'[Rank],BLANK())

 

 

Oceans88_1-1618949246429.png

 

 

1 ACCEPTED SOLUTION
v-jayw-msft
Community Support
Community Support

Hi @Oceans88 ,

 

Please correct me if I misunderstand your meaning.

Create a index column for the table and create a support column.

support_column = CALCULATE(MIN('Table'[Index]),ALLEXCEPT('Table','Table'[Column1]))

Then create the new index column.

new_index = RANKX('Table','Table'[support_column],,ASC,Dense)

6.PNG

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

2 REPLIES 2
v-jayw-msft
Community Support
Community Support

Hi @Oceans88 ,

 

Please correct me if I misunderstand your meaning.

Create a index column for the table and create a support column.

support_column = CALCULATE(MIN('Table'[Index]),ALLEXCEPT('Table','Table'[Column1]))

Then create the new index column.

new_index = RANKX('Table','Table'[support_column],,ASC,Dense)

6.PNG

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
Oceans88
Helper III
Helper III

Shameless bump lol. Anyone have any ideas on this issue? 

Kr

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.