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

Be 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

Reply
manojk_pbi
Helper IV
Helper IV

Matrix with background color

Hi Friends,

 

I would like to create a matrix with below data and background colors. In each cell it should represnt corresponding bug counts, if bugs are not present in the specifc category still matrix should show the colored background with no data. How to achieve this ? 

 

Any help or suggestions are much appreceiated

 

 

manojk_pbi_0-1690784849399.png

eg: Sample data below

BugIDSeverityImpactProject
B112Proj1
B222Proj1
B314Proj1
B431Proj1
B534Proj1
B642Proj1
B744Proj2
B834Proj2
B924Proj2

 

Expected Output for Proj 1 Selection: 

manojk_pbi_1-1690785668242.png

 

 

3 REPLIES 3
Tahreem24
Super User
Super User

@manojk_pbi You need to create a measure then apply this measure to background color fx setting.

BG color = SWITCH(TRUE(),

                                  SUM(Severity) * SUM(Impact) >=5 && SUM(Severity) * SUM(Impact) <10, "Red",

                                  SUM(Severity) * SUM(Impact) < 5, "Yellow",

                                  "Green")

 

Then apply this measure as per below screen shot, In Background option choose the measure name (BG Color).

Tahreem24_1-1690786726555.png

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

Thanks for your quick response. this will help in getting the background colors. How could we retain the matrix intact with all rows & columns with color irrespective of selections ?

Idrissshatila
Super User
Super User

Hello @manojk_pbi ,

 

check this video https://youtu.be/SsN0lgNJX6A

 

https://youtu.be/3AmXqEJ9TmM

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Follow me on Linkedin



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Helpful resources

Announcements
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!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.