Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
All,
Do you know how I can make it dynamic for the Company? I have multiple companies, but I just want to exclude certain companies that start/have the word "GP". I have this added to the expression, it didn't work. {"$(-={'GP,*'})"} .
=XIRR({<Company-={"$(={'GP,*'})"} ,Trans Type]-={'Income:' ,'Expense:', 'Fees'}>}[Amount],[Date])
Many Thanks,
Frank
You mentioned the word is in start.
try like this..
=XIRR({<Company-={'*GP*'},[Trans Type]-={'Income:' ,'Expense:', 'Fees'}>}[Amount],[Date])
It will show the red color line. you can ignore it. It will work
COuld you please share some sample data by that we can see to make the expression work?
Try Like
=XIRR({<Company-={'GP*'},[Trans Type]-={'Income:' ,'Expense:', 'Fees'}>}[Amount],[Date])
I tried, it didn't works.
For example:
I have the following companies:
ABC GP,LP
EFG INC,LP
XYZ GP,LP
I want to exclude these 2 companies where they have "GP"
ABC GP,LP
XYZ GP,LP
Thanks,
Frank
You mentioned the word is in start.
try like this..
=XIRR({<Company-={'*GP*'},[Trans Type]-={'Income:' ,'Expense:', 'Fees'}>}[Amount],[Date])
It will show the red color line. you can ignore it. It will work
Thanks.. it works.... I just I'm just missing * in the front.
Even you can use ~
<~Company={'*GP*'}..
Finally, for fields in and-mode, there is also the possibility of forced exclusion. If you want to force exclusion of specific field values, you will need to use “~” in front of the field name.
sum( {$<~Ingredient = {“*garlic*”}>} Sales ) | The field Ingredient is in AND mode. Returns the sales for current selection, but with a forced exclusion of all ingredients containing the string 'garlic'. |