Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
qv_jagan
Partner - Creator
Partner - Creator

function equal to inline

Hi all,

I have the following data

DateABC
111631
221732
331833
441934
552035
662136
772237
882338
992439
10102540
11112641
12122742
13132843
14142944
15153045

I want to create a chart like the one shown below

test.bmp

I used an Inline function to create the column FY in the chart.

 

LOAD

* INLINE [
F1
Rev
Vol
eVol
]

;

expression used in column name 1 in the chart was

.

IF(F1='Rev',Sum({< Date={1}>} A),

IF(F1='Vol',Sum({< Date={1}>} B),

IF(F1='eVol',Sum({< Date={1}>}C)

  )))

I want to know the equivalent function for the inline function at the ui side inorder to create a dummy values for a column that can be used in charts.

Please advice.

I have also attached the file.

Thanks in advance.

1 Solution

Accepted Solutions
Gysbert_Wassenaar

The valuelist function is what you're looking for I think. You can create a calculated dimension with dummy values using valuelist: valuelist('dummy1','dummy2','dummy3'). You'll have to use it in expressions too:

if(valuelist('dummy1','dummy2','dummy3')='dummy1', expr1,

     if(valuelist('dummy1','dummy2','dummy3')='dummy2', expr2,

          if(valuelist('dummy1','dummy2','dummy3')='dummy3', expr3)))


talk is cheap, supply exceeds demand

View solution in original post

3 Replies
qv_jagan
Partner - Creator
Partner - Creator
Author

I want to know the equivalent function for the inline function at the ui side inorder to create a dummy values for a row at Dimension side that can be used in charts.

Gysbert_Wassenaar

The valuelist function is what you're looking for I think. You can create a calculated dimension with dummy values using valuelist: valuelist('dummy1','dummy2','dummy3'). You'll have to use it in expressions too:

if(valuelist('dummy1','dummy2','dummy3')='dummy1', expr1,

     if(valuelist('dummy1','dummy2','dummy3')='dummy2', expr2,

          if(valuelist('dummy1','dummy2','dummy3')='dummy3', expr3)))


talk is cheap, supply exceeds demand
qv_jagan
Partner - Creator
Partner - Creator
Author

Thanks a lot for the answer.

Just FYI... It can also be done like this.