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
abcdefghii
New Member

Calculated Column in a Matrix

Hello,

 

I am trying to create a dashboard with a simple matrix between archive and active datasets. I have a query set up to import both sets of data, I then added a column to indicate if the row is Active or Archived (depending on where the data originated).  At a glance, I am trying to use conditional formatting to show if the dataset is either active or archived, it can never be in both. 

 

So, I have created a matrix, it is essentially 4 columns:

1 - Project Name

2 - Archive (count of records)

3 - Active (count of records)

4 - Total (sum of Archive + Active)

 

What I am trying to figure out, is that in the total column I simply want to see either a green or red icon, based on the Archive and Active column. One of them should always be blank, that triggers the green icon, if both columns have a value, then it should be red. 

 

I have tried a couple different counts, but nothing seems to work as expected. Hoping somone here can help me out. 

 

Thanks.

2 REPLIES 2
abcdefghii
New Member

I know conditional formatting is what I need, but using it currently it sees for example a value in both Archive and Active and so shows as green. But, if there is a value in both those columns, it should be red. 

Syndicate_Admin
Administrator
Administrator

Nice day.

To do this you must use a conditional formatting using as a rule a measure of if, but this will result to give an icon in your column additional to the value according to the given condition if it is File or active, it is not in icons exactly, but it can be useful.

FrancoQuiroga_0-1663271260285.png

FrancoQuiroga_1-1663271325390.png

FrancoQuiroga_2-1663271380435.png


Best regards.




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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

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.