cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Regular Visitor

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
Helper II
Helper II

@simo595a  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
Helper II
Helper II

@simo595a  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

Hi @colacan,

 

Thank you very much for your suggestion.

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

Helpful resources

Announcements
secondImage

Experience what’s next for Power BI

Join us for an in-depth look at the new Power BI features and capabilities at the free Microsoft Business Applications Launch Event.

secondImage

Power BI Women

Join our monthly meetings and learning sessions.

secondImage

Congratulations!

We are excited to announce the Power BI Super Users!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.