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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Group by two columns and add other column values

I have the table data in below format:

 

 

Requirement:

I want to group by API Name and Resource Group and calculate the Total Expected Cost and Total Actual Cost.

 

And the result would look like below:

 

Given the sample input and expected output below for reference...

Input: 

API NameResource GroupExpected CostActual CostMonthYear
API 1RG 1101512020
API 1RG 1202522020
API 1RG 1303232020
API 1RG 1404042020
API 1RG 1505552020
API 1RG 1606562020
API 1RG 1707572020
API 1RG 2101512020
API 1RG 2202522020
API 1RG 2303232020
API 1RG 2404042020
API 1RG 2505552020
API 1RG 2606562020
API 1RG 2707572020

Expected Output:

API NameResource GroupTotal Expected CostTotal Actual Cost
API 1RG 1280307
API 1RG 2280307
1 ACCEPTED SOLUTION
Pragati11
Super User
Super User

Hi @Anonymous ,

 

You don't require any transformations for this. Just move the columns to a table visual you will get the required output:

Pragati11_0-1600442989576.png

 

Set Summarisation for Expected Cost an Actual Cost to SUM:

Pragati11_1-1600443047099.png

 

Thanks,

Pragati

 

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

View solution in original post

1 REPLY 1
Pragati11
Super User
Super User

Hi @Anonymous ,

 

You don't require any transformations for this. Just move the columns to a table visual you will get the required output:

Pragati11_0-1600442989576.png

 

Set Summarisation for Expected Cost an Actual Cost to SUM:

Pragati11_1-1600443047099.png

 

Thanks,

Pragati

 

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.