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
amybirc77
Helper II
Helper II

How do i get this visual

Hi All,

I have 2 measures MTD and MTD_LY, I want to add a 3rd column that should show if it is good or bad , please see the below sccreen shot (GREEN and RED Arrows), please advice. I looked something similar like

Measure =
IF ( MIN ( 'Table1'[Column1] ) < 600, UNICHAR ( 9650 ), UNICHAR ( 128315 ) )
 

but that is column againt a constant value.

 

Capture.PNG

1 ACCEPTED SOLUTION
Mikelytics
Resident Rockstar
Resident Rockstar

Hi @amybirc77 ,

 

Additionally to your MTD and MTD_LY measure you would build a delta measure which creates the percentage difference between the first two like:

 

 

 

The format of the measure can be like this:

 

 

MTD_LY_DELTA = 

var var_MTD = [MTD]
var var_MTD_LY = [MTD_LY]
var var_MRT_LY_Delta = var_MTD - var_MTD_LY

RETURN
DIVIDE(
   var_MRT_LY_Delta,
   ABS(var_MTD_LY),
   BLANK()
)

 

 

For this measure typically you do the following formatting.

 

Mikelytics_0-1668455994177.png

 

Then you put all measures into the matrix visual:

Mikelytics_1-1668456066277.png

For clearer view I put the visual style on minimal

Mikelytics_2-1668456135835.png

Put on the conditional formatting for the DELTA column and the click on the fomula symbol

Mikelytics_3-1668456244845.png

 

now you can set the coloring rule. I configured it to be green for >= 80% and red for < 80%. You can choose in the number type for percentage of number. I prefer to work with number in each case and use decimal numbers to represent the percentages.

Mikelytics_4-1668456431478.png

 

after clikcing ok, the coloring is there

Mikelytics_5-1668456515603.png

now you can also create icons

Mikelytics_6-1668456562490.png

 

Mikelytics_7-1668456626724.png

 

Result after ok

Mikelytics_8-1668456648796.png

 

you can do some more stuff but this should give you a good overview to go on.

 

You can find more information here

Apply conditional table formatting in Power BI - Power BI | Microsoft Learn

 

Best regards

Michael

-----------------------------------------------------

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

@ me in replies or I'll lose your thread.

 

 

 

 

 

 

 

 

 

 

 

 

------------------------------------------------------------------
Visit my blog datenhungrig which I recently started with content about business intelligence and Power BI in German and English or follow me on LinkedIn!

View solution in original post

4 REPLIES 4
Mikelytics
Resident Rockstar
Resident Rockstar

Hi @amybirc77 ,

 

Additionally to your MTD and MTD_LY measure you would build a delta measure which creates the percentage difference between the first two like:

 

 

 

The format of the measure can be like this:

 

 

MTD_LY_DELTA = 

var var_MTD = [MTD]
var var_MTD_LY = [MTD_LY]
var var_MRT_LY_Delta = var_MTD - var_MTD_LY

RETURN
DIVIDE(
   var_MRT_LY_Delta,
   ABS(var_MTD_LY),
   BLANK()
)

 

 

For this measure typically you do the following formatting.

 

Mikelytics_0-1668455994177.png

 

Then you put all measures into the matrix visual:

Mikelytics_1-1668456066277.png

For clearer view I put the visual style on minimal

Mikelytics_2-1668456135835.png

Put on the conditional formatting for the DELTA column and the click on the fomula symbol

Mikelytics_3-1668456244845.png

 

now you can set the coloring rule. I configured it to be green for >= 80% and red for < 80%. You can choose in the number type for percentage of number. I prefer to work with number in each case and use decimal numbers to represent the percentages.

Mikelytics_4-1668456431478.png

 

after clikcing ok, the coloring is there

Mikelytics_5-1668456515603.png

now you can also create icons

Mikelytics_6-1668456562490.png

 

Mikelytics_7-1668456626724.png

 

Result after ok

Mikelytics_8-1668456648796.png

 

you can do some more stuff but this should give you a good overview to go on.

 

You can find more information here

Apply conditional table formatting in Power BI - Power BI | Microsoft Learn

 

Best regards

Michael

-----------------------------------------------------

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

@ me in replies or I'll lose your thread.

 

 

 

 

 

 

 

 

 

 

 

 

------------------------------------------------------------------
Visit my blog datenhungrig which I recently started with content about business intelligence and Power BI in German and English or follow me on LinkedIn!

@Mikelytics thank's a lot!, explained in a very layman way. Thanks

Hi @amybirc77, I am happy to help and appreciate your feedback.

Thank you very much!

------------------------------------------------------------------
Visit my blog datenhungrig which I recently started with content about business intelligence and Power BI in German and English or follow me on LinkedIn!
Greg_Deckler
Super User
Super User

@amybirc77 I don't know the business rules and there isn't much to go on but the general answer is Conditional formatting.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.