Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

user-defined customer number formats not being respected in IF statements #13

Open
DMauriceAU opened this issue Feb 7, 2018 · 4 comments

Comments

@DMauriceAU
Copy link

DMauriceAU commented Feb 7, 2018

In the drop-down options for number formats I can see that as well as the "Auto" function there is a "Measure Expression" selection.
Defining a measure with a custom number format (and having Qlik Sense respect it by selecting "Auto") is working with the extension, as long as only one format is selected.

In the case in the Apps we are developing, we've adjusted the data to have percentages in the same measure as amounts (for our own reporting), and in a straight table we can use IF statements for format these correctly.

In the extension, it looks like during your parsing and allowing scale adjustments this may be being dropped, I'm not sure exactly where though.
The array MeasuresFormat seems to hold all of these?

@DMauriceAU DMauriceAU changed the title user-defined customer number formats not being respected user-defined customer number formats not being respected in IF statements Feb 7, 2018
@DMauriceAU
Copy link
Author

Also seems to inconsistently have problems with number formats specified in measures containing an optional zero specifier, for example:
num([VALUE], '#,##0;(#,##0);-')

screenshot

@QlikGarten
Copy link

Hi,

I'm in the exact same position, need amount combined with % in one and same column, however, the extension seems to only support one format per column, regardless of whether I set % on some of the rows.

Kind regards,

Joakim

@iviasensio
Copy link
Collaborator

@QlikGarten, there is a trick, if your account label starts with the char '%', then the number mask will change automatically to percent format 0,00%

@QlikGarten
Copy link

Hi,

Thanks! And if I need to see % on some of the column on this specific row, while I need to show it as p.p.t on some of the columns (In other words apply a text format for p.p.t) on the exact same row, would that be possible as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants