Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
TomBond77
Specialist
Specialist

format

Hi experts

I have this formula but the formatting is not working for 0.00% and  '#''###.','.',''''))

Any ideas where the problem is?

(
if (InternrapportPercentageRow.IsPercentageRow,
num(
(Sum({<Konto.Id={'2450'}, [SEM_BCS account]={'311000 Invoiced sales DDPS + 3rd parties','312009 Invoiced sal. solution and products I/C'}>} amount / -1000)
+ Sum({<Konto.Id={'2450'}, [SEM_BCS account]-={'311000 Invoiced sales DDPS + 3rd parties','312009 Invoiced sal. solution and products I/C'}>} amount / 1000)
- Sum({<Konto.Id-={'2450'}>} amount / 1000)
)

/

(TOP(
Sum( {<Konto.Id={'2450'}, [SEM_BCS account]={'311000 Invoiced sales DDPS + 3rd parties','312009 Invoiced sal. solution and products I/C'}>} amount / -1000)
+ Sum( {<Konto.Id={'2450'}, [SEM_BCS account]-={'311000 Invoiced sales DDPS + 3rd parties','312009 Invoiced sal. solution and products I/C'}>} amount / 1000)
- Sum( {<Konto.Id-={'2450'}>} amount / 1000))),'0.00%')

//else
,
num(round(money(
Sum({<Konto.Id={'2450'}, [SEM_BCS account]={'311000 Invoiced sales DDPS + 3rd parties','312009 Invoiced sal. solution and products I/C'}>} amount / -1000)
+ Sum({<Konto.Id={'2450'}, [SEM_BCS account]-={'311000 Invoiced sales DDPS + 3rd parties','312009 Invoiced sal. solution and products I/C'}>} amount / 1000)
-Sum({<Konto.Id-={'2450'}>} amount / 1000))), '#''###.','.',''''))
)

-

(
if (InternrapportPercentageRow.IsPercentageRow,
num(
(
Sum({<Date.Month=, $(vSetBudget)>}budget / -1000 )
)

/

top(Sum({<Date.Month=, $(vSetBudget)>}budget / -1000 )),'0.00%')
, //else
num(
round(money(Sum({<Date.Month=, $(vSetBudget)>}budget / -1000) )), '#''###.','.',''''))
)

Labels (1)
1 Reply
vinieme12
Champion III
Champion III

if (InternrapportPercentageRow.IsPercentageRow,
//Then
num(
(
(
Sum({<Konto.Id={'2450'}, [SEM_BCS account]={'311000 Invoiced sales DDPS + 3rd parties','312009 Invoiced sal. solution and products I/C'}>} amount / -1000)
+ Sum({<Konto.Id={'2450'}, [SEM_BCS account]-={'311000 Invoiced sales DDPS + 3rd parties','312009 Invoiced sal. solution and products I/C'}>} amount / 1000)
- Sum({<Konto.Id-={'2450'}>} amount / 1000)
)
/
(
TOP((
Sum( {<Konto.Id={'2450'}, [SEM_BCS account]={'311000 Invoiced sales DDPS + 3rd parties','312009 Invoiced sal. solution and products I/C'}>} amount / -1000)
+ Sum( {<Konto.Id={'2450'}, [SEM_BCS account]-={'311000 Invoiced sales DDPS + 3rd parties','312009 Invoiced sal. solution and products I/C'}>} amount / 1000)
- Sum( {<Konto.Id-={'2450'}>} amount / 1000)))
)
)
-
(
Sum({<Date.Month=, $(vSetBudget)>}budget / -1000 )
/
top(
Sum({<Date.Month=, $(vSetBudget)>}budget / -1000 )
)
)

,'0.00%')

//else
,
num(
(round(
(
Sum({<Konto.Id={'2450'}, [SEM_BCS account]={'311000 Invoiced sales DDPS + 3rd parties','312009 Invoiced sal. solution and products I/C'}>} amount / -1000)
+ Sum({<Konto.Id={'2450'}, [SEM_BCS account]-={'311000 Invoiced sales DDPS + 3rd parties','312009 Invoiced sal. solution and products I/C'}>} amount / 1000)
-Sum({<Konto.Id-={'2450'}>} amount / 1000)
)
-
Sum({<Date.Month=, $(vSetBudget)>}budget / -1000)
)
)
, '#,###')
)

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.