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
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

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.

secondImage

Experience what’s next for Power BI

See the latest Power BI innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors