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
Anonymous
Not applicable

Index with max number

Hi guys, I need som help wit indexing tables with a cap on the index number.

 

The goal is an index from lets say 1:15. When the index reaches 15, then it should do another iteration of 1:15 indexing until the end. The number is dependent on another index in another table with no relationship.

 

Any recommendations on how to proceed?

Any help would be much appreciated.

1 ACCEPTED SOLUTION
colacan
Resolver II
Resolver II

@Anonymous  Hi,

 

You may use Index column with Mathfunction of MOD( ) as below.

IF( MOD([Index],15)=0, 15 , MOD([Index],15) )

 

To retrive [Index] from other table with no relationship, you amy use either Lookup( ) function or Treatas( ).

 

Hope this helps.

View solution in original post

2 REPLIES 2
colacan
Resolver II
Resolver II

@Anonymous  Hi,

 

You may use Index column with Mathfunction of MOD( ) as below.

IF( MOD([Index],15)=0, 15 , MOD([Index],15) )

 

To retrive [Index] from other table with no relationship, you amy use either Lookup( ) function or Treatas( ).

 

Hope this helps.

Anonymous
Not applicable

Hi @colacan,

 

Thank you very much for your suggestion.

Everything works accordingly now - thanks a lot!!!!

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.

Top Solution Authors