Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
inescastelhano
Partner - Creator II
Partner - Creator II

Color header in pivot table

Hi folks,

I'm trying to color either the header or the entire column (it doesn't really matter), if the weekday is saturday or sunday. I have the following table, and the following table expression:

=(round((hour(sum({<Day=,[Day of the Week]=>}aggr

(max({<Day=,[Day of the Week]=>}

[time1]-[time2])

, [ID])

))*60+minute(sum({<Day=,[Day of the Week]=>}aggr

(max({<Day=,[Day of the Week]=>}

[time1]-[time2])

, [ID])

)))

/count({< Day=,[Day of the Week]=>}

[Day])))

I'm using this expression to try to color the columns, but it's not working:

if(only({<Day=>}[Day of the Week])='sunday',

RGB(0,0,0))

Capture2.png

Any help?

Thanks in advance!

Cheers,

Ines

5 Replies
Chanty4u
MVP
MVP

u can use  custom format cell..

there u can give any colur to any cell of ur table.

go o  -->view tab---?select --->grid view--->select ur table--->right clik---->select ur cell and give colur

inescastelhano
Partner - Creator II
Partner - Creator II
Author

Hi, Actually not, because with custom format cell, conditional formatting is not possible.

Thanks

Not applicable

Hi,

Can you try following expression in background color

if(Match(Only(total<Day>[Day of the Week]),'sunday','saturday'),RGB(0,0,0))

Regards,

Nandkishor Pandirkar

inescastelhano
Partner - Creator II
Partner - Creator II
Author

Hi!

Thanks for your reply, but it doesn't work

Cheers,

Ines

Not applicable

Can you attach sample qvw