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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
arun2001mjl
Helper II
Helper II

Conditional Formatting with Multiple Columns with Multiple Files in PowerBI

Hello Team,

 

I have combined 5 files in powerbi with same columns but values are different.

In PowerBI, We have created a Matrix and shown "Server" as rows, "file name" as column and "Snapshot Usage" as Value. 

We have 5 files in a folder like below table.. Cluster Name and Server Name will be same in all 5 files but Snapshot Usage value alone will differ.

Daily file will be uploaded to this folder with file name as Date.

ClusterServerSnapshot Usage
Cluster1Server1162.53 GiB
Cluster1Server2-
Cluster1Server30.00 B
Cluster1Server443.09 GiB
Cluster1Server5318.91 GiB
Cluster1Server6-
Cluster1Server70.00 B

 

Now we need conditional formatting in below matrix table.. Is it possible to highlight a cell with different colour if left side value is same?

arun2001mjl_0-1687512070332.png

Could you please suggest.

 

I dont have any date columns in any of the files only file name will have date.

 

Regards

Arun

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

Hi @arun2001mjl ,

 

Based on your description, I have created a simple sample:

vjianbolimsft_0-1687763899499.png

First add a new column:

vjianbolimsft_1-1687763915801.png

Then use this measure to conditional formmating your data:

Measure = 
var _a = CALCULATE(SELECTEDVALUE('Table'[Snapshot Usage]),FILTER(ALL('Table'),[Cluster]=SELECTEDVALUE('Table'[Cluster])&&[Server]=SELECTEDVALUE('Table'[Server])&&[Sort]=SELECTEDVALUE('Table'[Sort])-1))
return IF(_a=SELECTEDVALUE('Table'[Snapshot Usage]),"Red","White")

vjianbolimsft_2-1687764523952.png

Final output:

vjianbolimsft_3-1687764540967.png

Best Regards,

Jianbo 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

2 REPLIES 2
arun2001mjl
Helper II
Helper II

Excellent. It works fine. Thank you very much Jianbo Li

v-jianboli-msft
Community Support
Community Support

Hi @arun2001mjl ,

 

Based on your description, I have created a simple sample:

vjianbolimsft_0-1687763899499.png

First add a new column:

vjianbolimsft_1-1687763915801.png

Then use this measure to conditional formmating your data:

Measure = 
var _a = CALCULATE(SELECTEDVALUE('Table'[Snapshot Usage]),FILTER(ALL('Table'),[Cluster]=SELECTEDVALUE('Table'[Cluster])&&[Server]=SELECTEDVALUE('Table'[Server])&&[Sort]=SELECTEDVALUE('Table'[Sort])-1))
return IF(_a=SELECTEDVALUE('Table'[Snapshot Usage]),"Red","White")

vjianbolimsft_2-1687764523952.png

Final output:

vjianbolimsft_3-1687764540967.png

Best Regards,

Jianbo Li

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

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors