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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
mcantos
Helper I
Helper I

Creating a matrix using measures

Hi community, 

 

I created a similar post some weeks ago, but then I realized it did not work as expected because I didn't create all the measures I needed, so I need your help again.

I have these fields coming from the same table:

mcantos_1-1727109878557.png

 

I need to create a report like this where each cell is the result of getting the opportunity name, Asset type, and Mechanism of Action for each combination of Stages and Status:

 

mcantos_0-1727109861049.png

 

Someone in the previous post, suggested creating measures and using a matrix as a visual which I did.

Sample of the the measure for cell 1 (yellow color):

 

mcantos_3-1727110011886.png

 

The problem is when I create the matrix, I don't get the table organized as expected (above) and all the values come in one row instead of one row per record:

mcantos_4-1727110048473.png

 

These are the visual conf. The values are the measures I created. I set the measures as values and the Status as rows

mcantos_5-1727110080758.png

 

What am I doing wrong? I don't know how to set the measures to get the specific order. 

Thank you!

1 ACCEPTED SOLUTION

Hi @mcantos 

 

Line breaks are implemented by "Enter" inside this double quotation mark (Enter key on the keyboard).

vzhengdxumsft_0-1727168465952.png

This is the CONCATENATEX() function's delimiter.

CONCATENATEX function (DAX) - DAX | Microsoft Learn

 

 

Best Regards

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

View solution in original post

4 REPLIES 4
v-zhengdxu-msft
Community Support
Community Support

Hi @mcantos 

 

Please try this:

Here's the sample table:

vzhengdxumsft_0-1727160612711.png

Then add a measure:

MEASURE =
CONCATENATEX (
    'Table',
    'Table'[Opportinity name] & "," & 'Table'[Asset Type] & "," & 'Table'[Mechanisms of action],
    " 
"
)

The result is as follow:

vzhengdxumsft_1-1727160668038.png

 

 

Best Regards

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

Thank you so much @v-zhengdxu-msft , that's what I needed!! I did not imagine it could be even easier.

 

The only problem I have now is I can't make the matrix generate a row per value as you did. For instance, this is what I get:

mcantos_0-1727166061401.png

The second value for Pre-Due Diligence - Active is appended to the first one instead of creating a new Active row like the one you displayed. 

Is there any conf on the visual that I am missing? 

Thank you again!

Hi @mcantos 

 

Line breaks are implemented by "Enter" inside this double quotation mark (Enter key on the keyboard).

vzhengdxumsft_0-1727168465952.png

This is the CONCATENATEX() function's delimiter.

CONCATENATEX function (DAX) - DAX | Microsoft Learn

 

 

Best Regards

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

Selva-Salimi
Solution Specialist
Solution Specialist

Hi @mcantos 

 

the easiest way that I recommend is to use cards and text boxes and arrange them near each other so that end user think that it was a matrix! please let me know if you have any challenge in using cards!

 

If this post helps, then I would appreciate a thumbs up 👍 and mark it as the solution to help the other members find it more quickly. 

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.