Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Change row value

IF(LEVEL2 = '16.30' AND (len(LEVEL3 > '0')), LEVEL2, LEVEL1) AS LEVEL4

When I load this line, it will output in a pivot table showing 16.3 because in my excel sheet that I load from, 16.30 is shown as 16.3(For I don't know what reason. My company say its like that).

What I would like to do is to change the 16.3 showing in the pivot table to '16.30'. Is there any way I can do it like for example

IF(LEVEL2 = '16.30' AND (len(LEVEL3 > '0')), LEVEL2 AS '16.30', LEVEL1) AS LEVEL4?

The above code does not work btw. Thank very much

15 Replies
Anil_Babu_Samineni

Can you provide sample data and expected output to see

atleast, 10 rows we are expecting

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
stabben23
Partner - Master
Partner - Master

Try use the num()

IF(LEVEL2 = '16.30' AND (len(LEVEL3 > '0')), num(LEVEL2,'##,##'), LEVEL1) AS LEVEL4

sdmech81
Specialist
Specialist

Try like this,Go to number tab of pivote chart and restrict to 2 decimals

sdmech81
Specialist
Specialist

Try this it should work!

Not applicable
Author

Currently when I use this code, IF(LEVEL2 = '16.30' AND (len(LEVEL3 > '0')), LEVEL2, LEVEL1) AS LEVEL4, I will receive a column of

LEVEL4

16.3

This is because my excel data treats 16.30 as 16.3 and therefore, loaded it as shown.

In reality, the excel data that is 16.3 should be shown as 16.30 on my qlikview. So I would like to know if there is a way to manually load 16.3 but display it as 16.30. So the expected output on qlikview will be

LEVEL4

16.30

Not applicable
Author

Sorry tried but it doest work

stabben23
Partner - Master
Partner - Master

I'll think he use this as Dimension value, not expression

Not applicable
Author

Sorry but your method is to adjust the cell values decimal points. I would like to change the way my dimensions are being displayed. something like

IF(LEVEL2 = '16.30' AND (len(LEVEL3 > '0')), LEVEL2 AS '16.30', LEVEL1) AS LEVEL4

I would like to manually load that specific LEVEL2 Dimension as '16.30'

stabben23
Partner - Master
Partner - Master

Does you LEVEL2 Field even consist 16.30?

Show us the value in Level2 from Excel without any modifications.