Solved

Exclude all the accounts starting by 5123xxxx

  • 15 April 2024
  • 8 replies
  • 77 views

Userlevel 2
Badge +5

Hello,

What formula can I use  in order to Exclude all the accounts starting by 5123xxxx ?

Thanks for your help,

icon

Best answer by Benoit 15 April 2024, 17:10

View original

8 replies

Userlevel 6
Badge +14

Hi Cédric,

Not sure what your formula looks like, but here a few functions that could be helpful
 

 

If you have a concrete example, I’ll be happy to guide you further.

Hope this helps!

Userlevel 2
Badge +5

I have a metric using the below dimension named “ Compte comptable” but i want to exclude the “Compte comptable” starting by 5123xxx, how can I combine the 2 functions you mentioned to do so  ? 

 

Userlevel 6
Badge +14

How about Metric[EXCLUDE: STARTSWITH("5123", 'Compte comptable'.Name)]?
You could also add a specific boolean property in your dimension and use that for the exclusion Metric[EXCLUDE: 'Compte comptable'.'Compte 5123xxxx']

I’m assuming you want to filter the data, not the view

Userlevel 2
Badge +5

I tried the first formula, i have no error but when i run the formula but i still have the 5123xxx accounts.

 

Userlevel 6
Badge +12

The dimension items will always be present in your dimension, but using your formula, they should not return any data.

If you don’t wish to see them in your view, you can simply hide them using the filtering options:

As they’re empty, you will not see them once hidden.

Hope this helps.

Userlevel 2
Badge +5

I already have this filter apply but i still have some value displayed.
 

 

Userlevel 6
Badge +12

Hi again, I believe you might have got the arguments in the wrong order, please try:

[EXCLUDE: startwith( “5123”, 'Compte comptable'.'Account number')]

 

The function begins with the value to find, then the data range to search.

Userlevel 2
Badge +5

It’s working well :) 
Thanks for your help 

Reply