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
amalrio
Helper V
Helper V

Matrix visual look like a gannt chart

Hi All, 

 

I have my data in a tabel format like below(how my back end PowerBI data table look like.

amalrio_0-1606355262394.png

 

I want to visual that data in a metrix or other sort of visual similar to below.

 

is there a way that I can achieve this feast. 

 

amalrio_1-1606355388371.png

 

 

 

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

Hi,

 

Please do like this.

 

  1. Create a calculated column.

v-lionel-msft_0-1606703674106.png

  1. Create a measure.

 

Color =

VAR x = SUM('Table (2)'[Column])

RETURN

IF(

    x <> BLANK(),

    "#E66C37", "White"

)

 

 

  1. Create a matrix and set formats.

v-lionel-msft_1-1606703674108.png

v-lionel-msft_5-1606703984415.pngv-lionel-msft_6-1606703996178.png

Best regards,
Lionel 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

4 REPLIES 4
v-lionel-msft
Community Support
Community Support

Hi,

 

Please do like this.

 

  1. Create a calculated column.

v-lionel-msft_0-1606703674106.png

  1. Create a measure.

 

Color =

VAR x = SUM('Table (2)'[Column])

RETURN

IF(

    x <> BLANK(),

    "#E66C37", "White"

)

 

 

  1. Create a matrix and set formats.

v-lionel-msft_1-1606703674108.png

v-lionel-msft_5-1606703984415.pngv-lionel-msft_6-1606703996178.png

Best regards,
Lionel Chen

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

 

 

amitchandak
Super User
Super User

@amalrio , Create a color measure

measure =countrows(Table)

color measure  = if(not(isblank(countrows(Table))) , "red", "white")

 

Add a measure to visual in conditional formatting color both background and font using conditional formatting - Field value option

 

refer step: https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-num...
https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values

Hi @amitchandak , 

 

My issue is I get to see below when I do that, I want to achieve my expected outcome, which is not duplicating the facility name. how would you go about it.

 

amalrio_0-1606358287347.png

 

@amitchandak , 

 

is that something you can achieve or not ??

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.