Hello,
Thanks for posting your question in the Microsoft Q&A forum.
One possible reason for this issue can be that the column in your query has NULL values. Please check this, and if there is a NULL value in your table, Please handle them by using ISNULL or COALESCE within your pivot operation to avoid NULL columns in the result.
For example, you can handle it by your default value:
select ISNULL(date_column, 'defaault_Value') from * ...
It returns the 'default_value' if it is NULL.
Or you can use COALESCE:
COALESCE(dateCreated, ''N/A'') AS dateCreated,
COALESCE(sourceincome, ''N/A'') AS sourceincome
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.
Best
Zahra