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

Visualizations : Matrix or table visual help

I need a visual like below.

(months ie; jan, feb, etc come from date dim)
targets can be static values from a table col

Metric names will be from a table col

The actual values that go under the "jan", "Feb" etc will be from a table col.

kpi.JPG

I've tried using matrix visual but I can't seem to get 'target' col added.

2 ACCEPTED SOLUTIONS
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

poivt "month" column to get  "jan", "Feb" etc columns, add these columns in the "Value" field along with a column "targets".

1.png2.png

But this way, it will have a tedious process to add conditional formatting.

 

A simple way is to add "metric" and "target" in the "Row" field

create a measure to define conditional formating rule.

Measure = SWITCH(TRUE(),MAX([metric])="kpi name 1",IF(MAX([actual value])>40,1,0),MAX([metric])="kpi name 2",IF(MAX([actual value])=1,1,0))

3.png

Best Regards
Maggie

 

Community Support Team _ Maggie Li
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

Hi @Anonymous 

Since my previous post is helpful for your original problem, i accept is as a solution to close it.

For the new question, i can change row header name as below

5.png

 

Best Regards
Maggie

 

Community Support Team _ Maggie Li
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-juanli-msft
Community Support
Community Support

Hi @Anonymous 

poivt "month" column to get  "jan", "Feb" etc columns, add these columns in the "Value" field along with a column "targets".

1.png2.png

But this way, it will have a tedious process to add conditional formatting.

 

A simple way is to add "metric" and "target" in the "Row" field

create a measure to define conditional formating rule.

Measure = SWITCH(TRUE(),MAX([metric])="kpi name 1",IF(MAX([actual value])>40,1,0),MAX([metric])="kpi name 2",IF(MAX([actual value])=1,1,0))

3.png

Best Regards
Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Thanks, that was helpful. Is there anyway I could make certain metric names ie; 'kpi name 1', 'kpi name 2' etc formatted for font color (not the values). I don't see the matrix visual gives an option for formatting under rows.

Hi @Anonymous 

Since my previous post is helpful for your original problem, i accept is as a solution to close it.

For the new question, i can change row header name as below

5.png

 

Best Regards
Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi - Is it possible to make kpiname1 formatted with a font color but not kpiname2 using measures?

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.

Top Solution Authors