Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
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:
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:
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:
Thank you!
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.
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”.
Remove “type” and “type name”. Now you get a table like the following table.
Click the column Custom, and select “Pivot Column”.
Click Close & Apply. You can use table visual to display results.
Best Regards,
Eads
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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!
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
65 |
User | Count |
---|---|
136 | |
118 | |
101 | |
71 | |
61 |