cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ScrubberKing
Frequent Visitor

How to make a summary table where each column is a grouping of values from the source table?

Hello!

 

I am trying to make a calculated table grouping by the id of a specific person where each column is a count of how many times a specific action was performed by them. My source table looks like this:

 

Calculated table..PNG

 

So with this example, I want one column to group Prospect ID, and then have following columns that basically have the format of type.type_name with a count of how many times they did that action.

 

Essentially, what I want to build is this:

Calulated table what I want.PNG

 

How could I use dax to accomplish this? I was successful in creating something kind of like this but the structure does not seem to be able to allow me to perform my regression analysis:

 

what didn't work.PNG

 

Thank you!

 

 

2 REPLIES 2
Highlighted
Community Support
Community Support

Re: How to make a summary table where each column is a grouping of values from the source table?

Hi @ScrubberKing ,

 

The first way is using matrix visual.
You can create a new calculated column to combine your “type” and “type name:

CombineColumn =
TEST[type] & "." & TEST[type_name]

Then use matrix visual.6-1.PNG

 

555.png

The second way is using m query. Open query editor, then change the date type of “type” to the text.

Add a custom column to combine “type” and “type name”.5-4.png

 

5-5.png

Remove “type” and “type name”. Now you get a table like the following table.5-6.PNG

Click the column Custom, and select “Pivot Column”.5-7.PNG

Click Close & Apply. You can use table visual to display results.5-8.PNG

 

Best Regards,

Eads

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
ScrubberKing
Frequent Visitor

Re: How to make a summary table where each column is a grouping of values from the source table?

Hi Thanks for your response! Definitely helpful for combining the column types. 

 

However, ultimately what I am trying to do is create a data table that is basically the matrix visualization so I can perform regression analysis and run the influencer visual. 

 

Any ide how I could do that with the SUMMARIZE or SUMMARIZECOLUMNS functions?

 

Many thanks for your response!

Helpful resources

Announcements
‘Better Together’ T-Shirt Contest – Winner Announced!

‘Better Together’ T-Shirt Contest – Winner Announced!

And the winner is...

Announcing the New Spanish Forum

Announcing the New Spanish Forum

Do you need help in Spanish? Check out our new Spanish community section.

April 2020 Community Highlights

April 2020 Community Highlights

Info on our Super Users, MBAS content and badges, and updates to our support articles. - Read the full Community Highlights.

MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

Top Solution Authors
Top Kudoed Authors