Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
maxattar
Partner - Contributor II
Partner - Contributor II

Bug with format pattern with negative values in Num() function

Hi, 

I cannot hide the negative sign with a format pattern in the Num function when my bar chart has a condition settled by changing a buttoned variable.

In the Num function, I try to hide the negative sign with the following patterns : # ##0;# ##0' or '0%;0%'

Both does not work (they work when there is no switch button).

The formula : 

If(vSwitchQtéPourcentage='Quantité',
-Num(Count({<[Licencié sexe]={'Femme'}>}[Licencié code]),'# ##0;# ##0'),
-Num(Count({<[Licencié sexe]={'Femme'}>}[Licencié code])/Count([Licencié code]),'0%;0%')

The switch button and the graph are linked.

Sincerely,

 

Maxattar

Labels (1)
4 Replies
vinieme12
Champion III
Champion III

Ensure you have selected "Measure Expression" under Number formatting

 

vinieme12_0-1665630438798.png

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
maxattar
Partner - Contributor II
Partner - Contributor II
Author

Hi Vinieme,

Thanks for your help but issue is still up as it was already selected.

 

vinieme12
Champion III
Champion III

Can you use two measures instead?

use the show/hide condition to enable disable each

 

 

 

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

There is a negative sign before each num() which has not only an impact on the returning values else it will force a new format-evaluation on the results - returning them within the default-formattings as if no num() has been applied.

- Marcus