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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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