Forum Discussion
Exclude Null Data from Subtraction
This is still giving me 12:00am even when the 'Activity '[First Time] is blank.
hi colem246,
Please give a sample data with your expected result and then I can try another approach.
Ninter
- colem2468 years agoFrequent Visitor
Here is an example of what it looks like. The last two columns are using the code you gave me. As you can see the columns at the top have missing data and still gives 12:00am in the last two columns. I would rather the last two columns be null.
Thanks
- Interkoubess8 years agoSolution Sage
Hi colem246,
Could you change the postion of the Or condition like( replace the fields with the correct names):
Or(isblank(), isblanck())
I will make a try when I get a computer with Powerbi desktop.
But let me know.
Ninter
- Interkoubess8 years agoSolution Sage
Hi colem246,
I tried the second approach proposed and it worked!
Please try it and let me know if you have any issues.
IF(OR(ISBLANK('Activity First and Last'[First Arrival]),ISBLANK('Activity First and Last'[Activity Date])),BLANK(),'Activity First and Last'[Activity Date]-'Activity First and Last'[First Arrival])Ninter