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

column textcolor

hi all,

i have a table with monday, tuesday and so on...

saturday and sunday i want in red and cursive...

how can i realise that?

 

what not works is:

WeekdayColor = SWITCH(TRUE();
                            table[weekday]="Saturday"; "Decline"
)

 

6 REPLIES 6
tex628
Community Champion
Community Champion

If you create each weekday as seperate measures and use in a matrix you can field format only the header to red text:
image.png
This will only work if you use a seperate measures for each day and i don't actually think there is any other way to do it. 


Connect on LinkedIn

hi tex... many thanks for your reply

but what do you mean with seperate measueres? do i have than one column at the end?

i use a table, not a matrix

Ohh, in that case it might not be any issue. 

In a matrix you would generally have a day dimension as the column. Which would automatically give you the weekdays as columns. This would mean that you can individually field format a column, as all the different says were just part of the day dimension. 

But if you have a table, i assume you have measures similar to:

Monday = Calculate( SUM( [Amount] ) , [Weekday] = "Monday" )


If you do, all you need to do is go into the pane for field formatting and format sunday/saturday


Connect on LinkedIn

with field formatting it is only possible to color all values in a column... not only saturday and sunday 😕

Then you have the days as rows and not columns. It's not possible to color the headers of specific rows. 


Connect on LinkedIn

i have a column like that

 

weekday

monday

monday

tuesday

saturday

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.