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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply

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 @maheshchubb123 ,

 

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 @maheshchubb123 ,

 

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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