Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Creating a summary measure from a calculated column (text)

Hi,

 

I have created a calculated column that categorises services as IaaS, PaaS Hosting (Containers) or PaaS Hosting (Other Cloud Native) based on the service name:

Service Type = IF('AWS Monthly Summary'[product_servicename]="Amazon Elastic Compute Cloud", "IaaS", IF('AWS Monthly Summary'[product_servicename]="Amazon Elastic File System", "IaaS", IF('AWS Monthly Summary'[product_servicename]="Elastic Load Balancing", "IaaS", IF(CONTAINSSTRING('AWS Monthly Summary'[product_servicename], "Container"),"PaaS Hosting (Containers)", IF(CONTAINSSTRING('AWS Monthly Summary'[product_servicename], "DB"),"PaaS Hosting (Other Cloud Native)", IF(CONTAINSSTRING('AWS Monthly Summary'[product_servicename], "Simple"), "PaaS Hosting (Other Cloud Native)", IF('AWS Monthly Summary'[product_servicename]="Amazon Athena", "PaaS Hosting (Other Cloud Native)", IF('AWS Monthly Summary'[product_servicename]="Amazon ElastiCache", "PaaS Hosting (Other Cloud Native)", IF(CONTAINSSTRING('AWS Monthly Summary'[product_servicename], "Kinesis"), "PaaS Hosting (Other Cloud Native)", IF('AWS Monthly Summary'[product_servicename]="Amazon Managed Streaming for Apache Kafka", "PaaS Hosting (Other Cloud Native)", IF('AWS Monthly Summary'[product_servicename]="Amazon QuickSight", "PaaS Hosting (Other Cloud Native)", IF('AWS Monthly Summary'[product_servicename]="Amazon Redshift", "PaaS Hosting (Other Cloud Native)", IF('AWS Monthly Summary'[product_servicename]="Amazon Relational Database Service", "PaaS Hosting (Other Cloud Native)", IF('AWS Monthly Summary'[product_servicename]="Amazon S3 Glacier Deep Archive", "PaaS Hosting (Other Cloud Native)", IF('AWS Monthly Summary'[product_servicename]="Amazon SageMaker", "PaaS Hosting (Other Cloud Native)", IF('AWS Monthly Summary'[product_servicename]="Amazon WorkSpaces", "PaaS Hosting (Other Cloud Native)", IF(CONTAINSSTRING('AWS Monthly Summary'[product_servicename], "Code"), "PaaS Hosting (Other Cloud Native)", IF('AWS Monthly Summary'[product_servicename]="AWS Data Pipeline", "PaaS Hosting (Other Cloud Native)", IF('AWS Monthly Summary'[product_servicename]="AWS Device Farm", "PaaS Hosting (Other Cloud Native)", IF('AWS Monthly Summary'[product_servicename]="AWS Glue", "PaaS Hosting (Other Cloud Native)", IF('AWS Monthly Summary'[product_servicename]="AWS Lambda", "PaaS Hosting (Other Cloud Native)", IF('AWS Monthly Summary'[product_servicename]="AWS Step Functions", "PaaS Hosting (Other Cloud Native)", "Platform Enablement"))))))))))))))))))))))
 
I am trying to create a summary measure where: if IaaS AND not PaaS Containers and NOT PaaS Other Cloud Native, THEN "IaaS Only", If IaaS and PaaS Containers then "IaaS & PaaS Containers", If IaaS AND PaaS Other Cloud Native AND not PaaS Containers then "IaaS & PaaS (Cloud Native)", If PaaS Containers AND not IaaS then "PaaS Only (Containers)", If PaaS Other Cloud Native AND not IaaS AND not PaaS Containers then "PaaS Only (Cloud Native)". This measure will be used to produce a summary table that counts the number of services in each category for each month.
 
I can't find a way in Power BI to summarise a calculated column (text) into a measure. This needs to be at the measure level to count the number of services in a particular month that fall into each of those categories and not at the calculated column level because one service can only be one value (IaaS, PaaS Containers or PaaS Other Cloud Native), but I want to be able to collectively summarise these services as "IaaS Only", "IaaS & PaaS Containers", "IaaS & Paas Cloud Native", "PaaS Only Containers", and "PaaS Only Cloud Native" as per the above logic. How can I summarise the text column into a measure since Power BI won't let me create a measure from a column?
1 REPLY 1
Anonymous
Not applicable

The data will be summarised in those categories of "IaaS Only", "IaaS & PaaS Containers", "IaaS & Paas Cloud Native", "PaaS Only Containers", and "PaaS Only Cloud Native" depending on the counts of services within each business activity. The business activity - Applications, Projects, Innovation Activities or Business Activities will be the rows and the IaaS/PaaS categories will be in the columns.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors