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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
ScrubberKing
Helper I
Helper I

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
v-eachen-msft
Community Support
Community Support

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.

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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