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
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
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Join THE global Microsoft Power Platform event series.

Join THE global Power Platform event series.

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors