Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

Highlighted
santhoshkasam0928
New Contributor

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

2 Replies
Partner
Partner

Re: Formatting of Columns in Excel using Macros

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..

santhoshkasam0928
New Contributor

Re: Formatting of Columns in Excel using Macros

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