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
jl20
Helper IV
Helper IV

How to slice a summarized table?

Hi,

 

I am trying to slice an aggregated table I created using the summarize function but am unable to do so. Data is as follows:

 

Source:

Job #.........Revenue..........Group

1                100              Group A

1                50                Group A

2                125              Group A

3                200              Group B

 

Summary table = (SUMMARIZE(Source,Source[Job #],"Revenue",SUM(Source[Revenue]))

Job #.........Revenue.........Group

1           150                  (????)

2             50

3           125

 

How do I pull the string data into the summary table so I can slice it? It won't let me create a relationship on Job # between the summary table and the data table "because one of the columns must have unique values."

 

Any help would be very much appreciated!

 

Thanks

1 ACCEPTED SOLUTION

Just add additional arguments: 

SUMMARIZE(<table>, <groupBy_columnName>[, <groupBy_columnName>]…[, <name>, <expression>]…)  

Read more here:

https://msdn.microsoft.com/en-us/library/gg492171.aspx

 

So in your case,  

 

Summary Table = (SUMMARIZE(Source,Source[Job #], Source[Group],"Revenue",SUM(Source[Revenue]))

View solution in original post

3 REPLIES 3
v-sihou-msft
Employee
Employee

@jl20

 

In this scenario, since your records are group on Job only, so other columns need to group by Job columns. I think you should also make Group column as GroupbyColumn.

 

Summary table = (SUMMARIZE(Source,Source[Job #],Source[Group],"Revenue",SUM(Source[Revenue]))

Otherwise you have to use CONCATENATEX() function to combine the text together.

 

Regards,

 

 

Thanks all, I guess I was adding the argument in the wrong order.

Just add additional arguments: 

SUMMARIZE(<table>, <groupBy_columnName>[, <groupBy_columnName>]…[, <name>, <expression>]…)  

Read more here:

https://msdn.microsoft.com/en-us/library/gg492171.aspx

 

So in your case,  

 

Summary Table = (SUMMARIZE(Source,Source[Job #], Source[Group],"Revenue",SUM(Source[Revenue]))

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.