Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
kartikaysingh
Contributor III
Contributor III

Adjust below premium to above row and remove that row

@Hi,

I have a query which my customer have asked to manipulate for his better understanding.

In the above picture customer wants that BI/Rent Exp value should be adjusted or moved to one line above i.e. 96,000 should move above to replace 0 .

In short customer do not want the whole line of Index=NIL and rather want the values adjusted above for Index=B35.

Can anyone suggest how this can be achieved in Qlikview

18 Replies
ogautier62
Specialist II
Specialist II

if you supress index as expression,

and replace by concatenate(index,'/')

you'll have  B35/NIL for example

ogautier62
Specialist II
Specialist II

may an awfull solution which could work :

as new dimension

if(BI/RentExp <> 0,index, aggr(MinString({<Index = {"=BI/RentExp = 0" >} index), you upper dimension or ID) )

ie : if BI/Rent <> 0 ligne is displayed,

                    = 0  it's cumulate with another line

best choice should be to do it in script

kartikaysingh
Contributor III
Contributor III
Author

So are you saying that I should take Item Index in expression and then disable it and then replace it with concatenate(Item Index,'/')?

kartikaysingh
Contributor III
Contributor III
Author

I did try this but for many columns I am getting - or blanks.

ogautier62
Specialist II
Specialist II

yes because you have a new dimension

expression must have an agregation function

are first text columns all same value for different index ?

if yes : you can use maxstring(your text column)

if no : in script, no choice

kartikaysingh
Contributor III
Contributor III
Author

I did try giving each dimension as maxstring(dimension) which did not worked. Will try it in script.

Thanks for your answers.

Anil_Babu_Samineni

I Would like to test your application. Can we expect sample?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
kartikaysingh
Contributor III
Contributor III
Author

I have attached the excel in the thread

kartikaysingh
Contributor III
Contributor III
Author

I have attached a sample excel.