Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have a field called "Area_Name". I want to set analysis to be written to Sum where the "Area_Name" is 'Blank' or 'NULL'
Sum(1)
Please help!
Thanks Oleg!
Will this work when we are trying to use the "Area_Name" as one of the dimension? Please suggest!
like this if NULL is written in your field then write this
sum({<Area_Name={"","NULL"}>}Value)
hi try this :
sum({<Area_Name={null()}>}Sales)
Sorry Prem it is not working!
I am little confused which one is the right one. Can some one help me out with the sample application please?
Hi,
Did you tried my solution?
Regards,
Jagan.
We would like to do that without any change in the load script! Thats the problem!
None of the solution provided above are above to handle the NULL values. It is only able to handle the blank.
I tried Oleg solution but it is able to handle only blank. Any suggestions please!
Hi there! Have you tested my proposal of using NullAsValue?
While it admittedly has a somewhat "brute force" feel to me, it has made it very easy for me to handle data loads from multiple sources where I cannot be 100% certain whether 'empty' columns are blank ('') or actually NULL. Consolidating these into a single value has made many of my analyses much simpler and more consistent.
The set analysis condition that's excluding nulls, should work even if the Area_Name is one of the chart dimensions, as long as you don't need to be sensitive to the individual Dimension values.
This is not pretty, but should get the job done because I also could not handle null values with set analysis alone.
sum(Sales) - sum({$<Area_Name-={"=len(trim(Area_Name))=0"}>} Sales)
I've attached a screenshot of my tests.
Karl