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

Change font based on performance

Hi,

 

I have a matrix showing the [performance] for each salesperson grouped by year week.

 

I would like to change the font color to yellow for the last yearweek (202335) if the performance is lower than the week before.

 

In addition, if the performance has declined for two weeks in a row, I would like to change the font to red.

 

So I need two measures for this.

 

Please example.

 

Thanks in advance.

mrclay82_0-1693898815104.png

 



2 REPLIES 2
mrclay82
Helper II
Helper II

Hi @eliasayyy ,

Yearweek is a column from a Date table

[Performance] is a measure based on a Transaction table

Connected with one to many.

Not sure what you need to know?

 

I thought to write a measure or two measures and perhaps using variables to give me one output for “Yellow” and one for “Red” and use that measure in conditional formatting.

 

Something like IF(currentweek < lastweek, 1, “ “) Where 1 = Yellow. Need help defining currentweek and lastweek.

IF( currentweek<lastweek and lastweek<theweekbefore, 2, “ “) Where 2 = Red. Need help defining theweekbefore.

And of course calculate the [performance] measure for each one.

Does this help?

eliasayyy
Memorable Member
Memorable Member

hello @mrclay82  can you please share a sample data of hwo your dataset looks like

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.