March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi all, I'm having trouble creating a matrix wherein the data from columns should be the values in the rows and get some information based on the other columns. The catch is the values are separated by comma
Here's the column where the values should be in the rows. I guess I need to unpivot the columns but the rest of the columns are being transposed.
Here's the final output should look like:
I have also attached here the sample data Group by Accreditation.pbix
Solved! Go to Solution.
Yes, insert the new column in the same table where you split the rows. The value in Country will copy to the new rows after you split the column, so it should not affect the values.
Proud to be a Super User!
One approach is to split the column Accredited By into rows. After this step, create a Trim step to remove spaces.
Since the above step will result in the EM Enrolment Calculated amount being copied to each row, create a custom column in Power Query using the expression below. It divides the original amount in EM Enrolment Calculated by the number of values in Accredited By. This will enable you to sum this column in a measure and get the correct amount.
[EM Enrolment Calculated] / List.Count(Text.Split([Accredited By], ","))
For the Schools measure, you can use DISTINCTCOUNT.
Proud to be a Super User!
Hi, thanks for the assistance. I'd like to ask where should I insert the new column? On the same table where I split my rows?
note that i'll also filter it further by country. Would that affect my values?
Yes, insert the new column in the same table where you split the rows. The value in Country will copy to the new rows after you split the column, so it should not affect the values.
Proud to be a Super User!
Hi @DataInsights, how do I show the enrolment in the matrix? Note that I am also using enrolment data age for columns and I'd like to also include the EM Enrolment Calculated in there
Create a measure that sums the custom column created in Power Query. This new column should be used instead of [EM Enrolment Calculated].
Proud to be a Super User!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
125 | |
81 | |
62 | |
54 | |
41 |
User | Count |
---|---|
194 | |
106 | |
90 | |
63 | |
51 |