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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Kopek
Helper IV
Helper IV

Proper row data to be picked up in the matrix

Hi,

 

I am coming with matrix issue, i have no idea how to adress..

 

My requirement is to build layer matrix visualization with proper comments in it.

 

I want to achieve below:

 

 

example.jpg

 

My Data source look like that :

 

CategorySub CategorySub-SubCategoryValue IValue IINotes
Main CategorySub Category ISubSubCategory I-I00SubSubCategory I-I Comment
Main CategorySub Category ISubSubCategory I-II11SubSubCategory I-II Comment
Main CategorySub Category IISubSubCategory II-I22SubSubCategory II-I Comment
Main CategorySub Category IISubSubCategory II-II33SubSubCategory II-II Comment
Main CategorySub Category IIISubSubCategory III-I44SubSubCategory III-I Comment
Main CategorySub Category IVSubSubCategory IV-I55SubSubCategory IV-I Comment
Main CategorySub Category IVSubSubCategory IV-II66SubSubCategory IV-II Comment
Main CategorySub Category IVSubSubCategory IV-III77SubSubCategory IV-III Comment
Main Category  88Main Category Comment
Main CategorySub Category I 99Sub Category I comment
Main CategorySub Category II 1010Sub Category II comment
Main CategorySub Category III 1111Sub Category III comment
Main CategorySub Category IV 1212Sub Category IV comment

 

Could you please help me out finding a proper measure which will take the proper comment to poper line ?

Maybe i should change something in datasource ?

 

Thanks in advance!

 

 

1 ACCEPTED SOLUTION
v-alq-msft
Community Support
Community Support

Hi, @Kopek 

 

You may achieve your requirement with matrix visual. 'Category', 'Sub Category' and 'Sub-SubCategory' fields are put in 'Row'. 'Value I', 'Value II', 'Notes' fields are put in 'Values'. You need to set the aggregation for 'Notes' as 'First'.

d1.png

 

Result:

d2.png

 

Best Regars

Allan

 

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

2 REPLIES 2
v-alq-msft
Community Support
Community Support

Hi, @Kopek 

 

You may achieve your requirement with matrix visual. 'Category', 'Sub Category' and 'Sub-SubCategory' fields are put in 'Row'. 'Value I', 'Value II', 'Notes' fields are put in 'Values'. You need to set the aggregation for 'Notes' as 'First'.

d1.png

 

Result:

d2.png

 

Best Regars

Allan

 

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

ibarrau
Super User
Super User

Hi. The thing about the matrix is that the value must be aggregated. In case of text, you can use MAX/MIN or LAST/FIRST to the text column (NOTES). Create a measure like that MAX('Table'[Notes])

Hope that works.


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

Happy to help!

LaDataWeb Blog

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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