Microsoft finally got one over on rival Amazon in the cloud space by taking the top spot for total off-premises cloud service revenue generated last year, according to a new report from IHS Markit. However, it did take compiling numbers from just about every cloud-based offering to do it.

The insight, which was gleaned from a broader report by the research firm, showed that Microsoft scored $26.8 billion in revenues across its cloud application and infrastructure businesses. That just nipped Amazon Web Services (AWS), which generated $25.7 billion across those businesses last year.

IHS links a provider’s software-as-a-service (SaaS) business to the application business category and infrastructure-as-a-service (IaaS), containers-as-a-service (CaaS), physical facilities, and platform-as-a-service (PaaS) offerings to the infrastructure business category.

In breaking down the latest numbers, Microsoft gained the top spot on the back of its applications business, which generated $8.5 billion in revenues last year compared to just $32 million generated by AWS. Conversely, AWS dominated in the infrastructure space as it generated $25.6 billion in revenues from that business compared to $18.3 billion generated by Microsoft.

“Microsoft’s success can be attributed to its comprehensive portfolio and the growth it is experiencing from its more advanced PaaS and CaaS offerings,” the report noted.

The latest results also flipped the script from 2017, when AWS had led in revenues.

Outside of that heavyweight battle, IBM generated the third-most cloud-related revenues last year ($17.1 billion), with around three-fourths of that coming from its applications business. Google was a distant No. 4 with $10.9 billion in revenues, which like AWS mostly came from its infrastructure business.

Funny Math

AWS can take some solace in that other research firms have come to different conclusions.

Synergy Research Group, for example, has stated that AWS controlled as much of the $70 billion-per-year market at the end of last year as its next four smaller rivals combined. SRG’s “cloud infrastructure services” numbers take into account IaaS, PaaS, and hosted private cloud services.

According to SRG, Microsoft was comfortably in the No. 2 position, ahead of a fierce battle for the No. 3 spot between Google and IBM.

IHS had previously explained that it preferred to call the category “off-premises cloud” because “public cloud, in our opinion, is an architecture and is only one architecture for services supplied by cloud service providers.”