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
Anonymous
Not applicable

Multiple result in one cell (matrix)

Hi everyone,

I would create a matrix with multiple results in each cells.

 

MyTable (for exemple) :

TrainingDay     Trainers    Status      TrainingLabel

05/07/2018      Jeff          Validated  AwesomeStuff

05/07/2018      Jeff          Option      **bleep**tyOne

10/10/2018      Jeff          Option      AwefullThing

06/08/2018      Mike        Validated  CrazyDay

...

 

I would like this result (Matrix) :

 

Trainers      05/07/2018                    06/08/2018             10/10/2018

_______________________________________________________________________________________

Jeff             AwesomeStuff (in red)                                   AwefullThing (in yellow)

                  **bleep**tyOne (in yellow)

_______________________________________________________________________________________

Mike                                                  CrazyDay (in red)

_______________________________________________________________________________________

...

 

 

And sometimes, a training may be longer than one day.

For help, I got one measure with a swith formula to color a cell.

 

Do you know how to do it?

 

Thank you all,

1 ACCEPTED SOLUTION
v-cherch-msft
Employee
Employee

Hi @Anonymous

 

You may use below measure to get the matrix. But i'm afraid it's impossible to set conditional formatting for different rows in one cell. Here is the document Conditional formatting in tables for your reference.

Measure =
CONCATENATEX (
    DISTINCT ( mytable[TrainingLabel] ),
    mytable[TrainingLabel],
    UNICHAR ( 10 )
)

1.png

Regards,

Cherie

Community Support Team _ Cherie Chen
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-cherch-msft
Employee
Employee

Hi @Anonymous

 

You may use below measure to get the matrix. But i'm afraid it's impossible to set conditional formatting for different rows in one cell. Here is the document Conditional formatting in tables for your reference.

Measure =
CONCATENATEX (
    DISTINCT ( mytable[TrainingLabel] ),
    mytable[TrainingLabel],
    UNICHAR ( 10 )
)

1.png

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Awesome!!!

Thank you! That's working!

 

For conditionnal formatting, I could find an issue only to color the font (instead the cell).

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.