Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Moshiko
Contributor
Contributor

measure expression formatting doesn't work in Excel

When I create a measure within an object and using measure expression as Number formatting, when I export data to excel from this object, the data in excel is shown as General, not as a number.

I need to convert it to Number manually in Excel file.

the measure is: 

if(%Tonnage_Unit_Code=1,

num((Sum( {< TYPE= {'F'}  $(vIgnorEconomic)>} NET_WEIGHT)/1000),'#,##0'),

if(%Tonnage_Unit_Code=2,

num((Sum( {< TYPE= {'F'}  $(vIgnorEconomic)>} NET_WEIGHT)/1000)

/

(Sum( {< TYPE= {'F'}  $(vIgnorEconomic)>} Total NET_WEIGHT)/1000),'#,##0%')

))

 

when I write the same measure in Qlik sense on prem, the formatting in correct.

who can help please?

Labels (2)
2 Replies
MatheusC
Specialist II
Specialist II

@Moshiko 
In your expression condition, Qlik is treating this expression as AUTO, which will cause it to return General in Excel. This will not be possible in your current scenario. In some cases, changing from AUTO to number, custom, or even applying formatting to a single measure like num(sales, '###,#0.0 $') can achieve the desired result when exporting.

However, this does not apply to your case, so this limitation remains. You might want to report your case to Qlik or support an existing idea related to this issue.

- Matheus

Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button!
Moshiko
Contributor
Contributor
Author

Hi @MatheusC 

this expression works perfectly in Qlik sense On prem when exporting to excel, why in Qlik Cloud  it's different?