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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
gz
Creator
Creator

percentages and numeric values ​​in one table

Hi, I have percentages and numeric values ​​in one table. How can I set it in measures so that the format will be % and accounting.

 

gz_1-1690438232547.png

 

Labels (1)
2 Solutions

Accepted Solutions
MayilVahanan

Hi

In the expression itself, you can declare the formatting using num() function and set measure number formatting as "Measure expression"

Ex: If(Dim1 = 'A', Num(Sum(Sales), '#,##0'), if(Dim1  = 'B', Num(Sum(Sales)/Sum(Total Sales), '#,##0.##%'))

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

MayilVahanan

Hi

Can you set the Expression formatting as "Measure expression" instead of Default

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

6 Replies
Sebastian_Dec
Creator II
Creator II

Hi, @gz in Table -> Data -> change Number formatting to Number and choose formatting to procent.

Sebastian_Dec_0-1690440042300.png

 

Thanks & Regards,
Please close the thread by marking correct answer & give likes if you like the post.
MayilVahanan

Hi

In the expression itself, you can declare the formatting using num() function and set measure number formatting as "Measure expression"

Ex: If(Dim1 = 'A', Num(Sum(Sales), '#,##0'), if(Dim1  = 'B', Num(Sum(Sales)/Sum(Total Sales), '#,##0.##%'))

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
gz
Creator
Creator
Author

hi, this will doesen't work because i have in one table % and amount value

gz
Creator
Creator
Author

doesn't work, my measure expression is "Avg(wartosci)"

gz
Creator
Creator
Author

in measure expression i have 

If([Nazwa metryki] = 'KR: Na koniec 2023 nowe umowy eSkonta wygenerują 2,2 mln przychodu',Num(Avg(wartosci), '#,##0'),Num(Avg(wartosci), '#,##0.##%'))

but in table 

gz_0-1690792761213.png

 

MayilVahanan

Hi

Can you set the Expression formatting as "Measure expression" instead of Default

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.