I have a workflow where I'm using a formula tile to assign a number to a record (new field) based on whether it falls before or after a date as follows:
IF [Sales GL Date] > '2022-05-31' THEN 2 ELSE 1 ENDIF
In the next step, I utilize a Cross Tab tile to pivot each category (1 & 2 from above) into separate columns summing by amount.
Normally, my data will have dates both before and after and I'll get two columns once I use the Cross Tab tile. However, there are times when all records will be before or after, not both. When this happens, the Cross Tab only creates one column and subsequent parts of my workflow will error out and my output changes to one column instead instead of two.
I would like to have two columns every time I run this workflow regardless of if there is data for both or not. Any assistance is greatly appreciated.
Thank you