Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8644

Re: Get cell value in a table

$
0
0

The first two columns is static data entered by hand on creation of the report. These values will not change, but the number of rows - might (new text added by hand).

On 3rd-6th columns I need to enter formulas, which are different for each row. (Think about it as dashboard)

Each of the formulas have complex calculations. However the calculation is the same, but the measure that this calculation is made on -  differs based on the row where it is at.

So! I want to create a variable that will have this complex calculation inside it (I would have it in one place only), and then just pass the measure to it based on which row the formula is at.

 

It works fine if I use LineNumber():

If LineNumber()=1 Then [Measure1] else

if LineNumber()=2 Then [Measure2] else...

 

However in case we will need to add a row somewhere in between the table, I would have to remap all the row numbers... That's why I want to attach to the text in the column, rather than the line number.


Viewing all articles
Browse latest Browse all 8644

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>