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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
webbj
Helper I
Helper I

Measures Calculation?

I'm wondering if anyone can help me with a calculation. The issue is that the data is all stored in a single column, my manager would like the the data displayed by product without breaking it down by type. Is there a way using measures to calculate the total number of 'product 1' cases, 'product 2' etc in the column so that when i create a pie chart it only shows the numbers of the combined products. 

 

 

Services
Product 1 - service type 1
Product 1 - service type 2
Product 2 - service type 1

 

Showing like so, rather than a slice for each 'service type' per product.

 

webbj_0-1646845941587.png

 

If you need anything clarifying or there's a better way to do this please let me know 🙂

1 ACCEPTED SOLUTION
Syk
Resident Rockstar
Resident Rockstar

You can edit the data in the power query editor

Syk_0-1646849846077.png

Syk_1-1646849916351.png


Then just rename your columns

Syk_2-1646849957629.png

 

View solution in original post

4 REPLIES 4
webbj
Helper I
Helper I

I thought that might be the answer - sheet duplicating the column is there a way within powerbi to do a replace - where column cell = product 1 replace with X.

 

The data is being pulled in by an API so I can't format the source - only the data I get in powerbi 

 

 

Syk
Resident Rockstar
Resident Rockstar

You can edit the data in the power query editor

Syk_0-1646849846077.png

Syk_1-1646849916351.png


Then just rename your columns

Syk_2-1646849957629.png

 

Thankyou! This resolved my main issue, couple of extra tweeks and it was working 🙂 

Syk
Resident Rockstar
Resident Rockstar

You should start by at least seperating them into 2 columns. 1 for Product and 1 for Service Type.
Then you can recreate your pie chart just using the product column.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.