cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
simo595a
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
colacan
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
colacan
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
User Groups Public Preview

Join us for our User Group Public Preview!

Power BI User Groups are coming! Make sure you’re among the first to know when user groups go live for public preview.

March Update

Check it Out!

Click here to read more about the March 2021 Updates!

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.

Top Solution Authors
Top Kudoed Authors