Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Include null value in set analysis

Hi,

I've created a variable, vMyValue, which contain all the values that i need to compare in my analysis.

My analysis would be something like this:

Sum({<BUD_UNBUD={$(vBudgetConfig)}>}TotalBudget)

My question is I want to compare if the BUD_UNBUD = 'Budgeted' and null, then it will proceed to sum. How should I include the "Null" value in my variable?

Thanks.

Eugene

1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     The best way for this is you give a value to null values.

     Something like this.

     Load Field1, If(Isnull(Field2,'NULL',Field2)) as Field2 from xyz.

     Then you can just use the NULL in search to get the null data.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!

View solution in original post

4 Replies
tresesco
MVP
MVP

try:

Sum({<BUD_UNBUD={$(vBudgetConfig) , '' }>}TotalBudget)

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     The best way for this is you give a value to null values.

     Something like this.

     Load Field1, If(Isnull(Field2,'NULL',Field2)) as Field2 from xyz.

     Then you can just use the NULL in search to get the null data.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
er_mohit
Master II
Master II

try this

Sum({<BUD_UNBUD={$(vBudgetConfig),'',' ','-'}>}TotalBudget)

Not applicable
Author

why i never think of this? hee. thank you.