Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Formatting of Columns in Excel using Macros

Hi All,

I have a requirement to export a Pivot table to Excel which has few dimensions in the columns. So based on the dimension value and Measure, i have to format the Numbers in Pivot table. For example, i have transaction type as a dimension and the values are NEW, Renewal, Endorsement and the Measures are Count and Revenue.

Now If it is Renewal and Count, the format should me "#,##0.0" and else cases it should be "#,##0.00"

Can some one help me with this. Thanks in advance 🙂

Regards

Santhosh Kasam

Labels (4)
2 Replies
hopkinsc
Partner - Specialist III
Partner - Specialist III

Hi, in the expression why don't you have an IF() statement.

i.e.

Count expression:

IF([transaction type]='Renewal' , num(count(value),'#,##0.0'),

         num(count(value),'#,##0.00')

)

 

or am i misunderstanding the requirement? not sure why you need to use macros..

Anonymous
Not applicable
Author

Hi Hopkinsc,

I agree with your statement but we are having many other formatting which we are doing in macros. And the formatting from Qlikview is not reflecting in Excel. Thank you.

Regards

Santhosh Kasam