Do not confuse revenue and profit, they are not the same thing at all.
Game Pass has set a new quarterly record growing its PC subscriber base by over 30%.
Gross margin increased $1.9 billion or 15% driven by growth in Gaming, including the impact of the Activision Blizzard acquisition. Gross margin percentage increased driven by sales mix shift to higher margin businesses and improvement in Search and news advertising and Gaming
Content and services revenue is up 2% and Hardware sales were also down a significant margin by 29%. But the profit margins on consoles are almost zero, it's almost he same for PS. The profit margin on content and services is much higher. Note that console sales are down everywhere, not just for Xbox.
Moreover, Xbox is the top publisher ahead of EA, Ubisoft, and Take-Two.
So all this shows that Xbox is doing very, very well.