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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
e175429
Helper IV
Helper IV

Conditional Formatting

Hello All,

 

This is a part of my curent table:

e175429_0-1722355959166.png

 

For the "Score Trend", instead of it saying Decline, No change, Improvemement, I would like it to instead show a arrow going up

(for improvement), down (for decline), and a dash (for no improvement) and then I don't want the words to show either.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @e175429 ,

Based on my testing, please try the following methods:

1.Create the sample table.

vjiewumsft_0-1722587173454.png

2.Create the new column to filter the N/A.

filterlastscore = IF('Table 2'[Last Score] = "N/A", BLANK(), 'Table 2'[Last Score])

3.Create the new column to calculate the score change. Change the column format to percentage.

Score change = DIVIDE('Table 2'[Current Score] - 'Table 2'[filterlastscore], 100)

vjiewumsft_1-1722587183337.png

4.Create the new measure to calculate score trend.

Scoretren = 
IF([Score change] > 0, "Improvement", 
    IF([Score change] < 0 , "Decline", "N/A")
)

vjiewumsft_2-1722587204354.png

Best Regards,

Wisdom Wu

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

6 REPLIES 6
Ray_Minds
Continued Contributor
Continued Contributor

Hi @e175429 
1. First Create data in Power BI using the enter data option in the home tab

Ray_Minds_0-1722418765105.png

2. After that create the calculated column and get the Difference in Sales

Ray_Minds_1-1722418819780.png


3. After that create the sale changes

Ray_Minds_3-1722418894120.png

4. Select the Sale trend > conditional formatting > Icons.

Ray_Minds_4-1722418930706.png

5. Select Rules &gt; Score trend &gt; Icons only. Set the Rules.

Ray_Minds_5-1722418989149.png

6. The result is shown below.

Ray_Minds_6-1722419013959.png

 


If your requirement is solved, please make THIS ANSWER a SOLUTION ✔️ and help other users find the solution quickly. Please hit the LIKE 👍 button if this comment helps you.

 



Anonymous
Not applicable

Hi @e175429 ,

Based on my testing, please try the following methods:

1.Create the sample table.

vjiewumsft_0-1722390011931.png

2.Create the new measure to calculate score change.

Score change = 
var _last = SUMX('Table', 'Table'[Last Score])
var _current = SUMX('Table', 'Table'[Current Score])
RETURN
DIVIDE(_current - _last, 100)

3.Create the new measure to filter the score trend.

Score trend = 
IF([Score change] > 0, "Improvement", 
    IF([Score change] < 0 , "Decline", "N/A")
)

vjiewumsft_1-1722390023918.png

4.Select the Score trend > conditional formatting > Icons.

vjiewumsft_2-1722390062257.png

5.Select Rules > Score trend > Icons only. Set the Rules.

vjiewumsft_3-1722390076472.png

6.The result is shown below.

vjiewumsft_4-1722390084644.png

 

Best Regards,

Wisdom Wu

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

Hello! 

 

I appreciate your response.

I am getting the following error when calculating the score change:

e175429_0-1722460359617.png

And I can't calculate the score trend until I score change.

 

The reason I am getting this error is because there are some people with no scores in the Last Score column. Currently, for those people, it says "N/A". They don't have a "Last Score" but they do have a "Current Score".

 

I purposely did not write 0 in their "'Last Score" column because I don't want that to be confused with their current score and having "No Improvement". It's not that they didn't improve, they just were not involved the first go around.

 

Does that make sense? So, as the error says, SUMX cannot work on values with "N/A" in it. And I understand that. But what should I put in place of "N/A"?

Anonymous
Not applicable

Hi @e175429 ,

Based on my testing, please try the following methods:

1.Create the sample table.

vjiewumsft_0-1722587173454.png

2.Create the new column to filter the N/A.

filterlastscore = IF('Table 2'[Last Score] = "N/A", BLANK(), 'Table 2'[Last Score])

3.Create the new column to calculate the score change. Change the column format to percentage.

Score change = DIVIDE('Table 2'[Current Score] - 'Table 2'[filterlastscore], 100)

vjiewumsft_1-1722587183337.png

4.Create the new measure to calculate score trend.

Scoretren = 
IF([Score change] > 0, "Improvement", 
    IF([Score change] < 0 , "Decline", "N/A")
)

vjiewumsft_2-1722587204354.png

Best Regards,

Wisdom Wu

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

Hey @Anonymous,

 

I figured it out. I had to combine a IF AND statement.

 

e175429_0-1722627938333.png

 Results:

e175429_1-1722627986254.png

 

Thank you sooooo much for your help. I would have been stuck forever.

Hi @Anonymous,

 

Is there a way to factor "No trend" in to the "Trend" column (due to them not participating), because technically they didn't improve(or decline)? For the ones who originally had no score, they shouldn't have a trend.

 

e175429_1-1722610510406.png

 

 

 

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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