I have created a formula for a measure in my model which looks something like this ;
So when both or one of my dates are null the value should be set to -999. But it turns out no matter how I write the formula ISNULL fails to recognize that the date is null. Any suggestions? Here is what my data looks like in the table component in the story. The last column below shows the value from the formula above which is set to 0 since both date columns (the first two) used in the formula are null. When both date columns are null the measure should show -999.
Request clarification before answering.
Thanks, Saurabh.
I found a workaround to the ISNULL() function. I am checking if the date is greater than "1/1/1000" and that seems to work for me. During the model creation all null values are either dropped or replaced with "#" so what is the purpose of ISNULL() function. I couldn't get it to show me with If date ="#" either.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Try get table data in variable
var result = table1.getdatasource().getsresultset();
use console.logt to check what values does your date field is having
console.log(result)
after that use that in your formula
Mostly it would be undefined in the date field where it is blank but plz get check onces
Thanks,
Saurabh S.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.