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
flo99
New Member

Table with sum of values based on distinct values in other table

Dear PBI Community,

 

I have a table with 4 columns: revenue, reference, year and month. The table looks like this:

 

P1.png

 

Now I need a new table with the sum of the revenue if the the reference is the same. It should look like this:

 

P2.png

 

Is that possible?

I hope for your assistance. Many thanks in advance.
Flo

2 REPLIES 2
amitchandak
Super User
Super User

@flo99 , if you put it in visual and take sum of revenue it should work. Keep others un summarized

 

Or Create a new table

New Table =summarize(Table, Table[Reference], Table[Year], Table[Month], "Revenue", sum(Table[Revenue]))

It worked with the new table. Thanks a lot amitchandak!

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.