Hello Moheed,
Have you tried using coalesce function ? if not try it out and see if it helps.
Fore more info -Coalesce - Amazon QuickSight
Similar old post for your reference - Formatting empty value cell in pivots - #7 by Hassain
Hope this helps.
Cheers,
Deep