Skip to main content
Newcomer
Mar 29, 2023 2:16 PM UTC
Solved

Cube View Formatting

Does anyone know how to format the object lookup cell in the cubeview? We currently have formatting on the cube view as follows. 

 

If(IsRowNumberEven = True) Then
   BackgroundColor = #FFFFFFFF, *white*
   ExcelBackgroundColor = #FFFFFFFF,
Else
   BackgroundColor = #FFCFF0FC, *blue*
   ExcelBackgroundColor = #FFCFF0FC,
End If

If (RowName contains 'NoZebra') or (IsColHeader = true) then
   BackgroundColor = #FFFFFFFF, *white*
   ExcelBackgroundColor = #FFFFFFFF, 
end if

 

jordielane_0-1680099124825.png

In some of our reports we use IsRowNumberEven = False, but in this case I need the odd rows to be blue, but since it counts the column headers I don't know how to get around this. 

 

Employee - Sage
Mar 30, 2023 2:06 PM UTC
BackgroundColor = #FFFFFFFF
if RowName <> '' then 

	If(IsRowNumberEven = True) then
	   BackgroundColor = #FFFFFFFF, 
	   ExcelBackgroundColor = #FFFFFFFF,
	Else
	   BackgroundColor = #FFCFF0FC, 
	   ExcelBackgroundColor = #FFCFF0FC,
	End If

	If (RowName contains 'NoZebra') or (IsColHeader = true) then
	   BackgroundColor = #FFFFFFFF, 
	   ExcelBackgroundColor = #FFFFFFFF, 
	end if

end if

JackLacava_0-1680185196629.png

 

6 replies

Employee - Sage
Mar 30, 2023 9:00 AM UTC

I'm not sure I follow. The color of the object lookup cell is determined by the default header format:

JackLacava_0-1680166589892.png

 

Newcomer
Mar 30, 2023 12:18 PM UTC

Yes, the conditional formatting I have above that determines the alternating row format is in the default header format. I want that cell to be white, like the other column headers, but when I use IsColHeader = True it doesnt affect that cell and leaves it blue. I'm trying to find a way to format that specific cell to override the the alternating color formatting like I did with the column headers. 

Employee - Sage
Mar 30, 2023 2:06 PM UTC
BackgroundColor = #FFFFFFFF
if RowName <> '' then 

	If(IsRowNumberEven = True) then
	   BackgroundColor = #FFFFFFFF, 
	   ExcelBackgroundColor = #FFFFFFFF,
	Else
	   BackgroundColor = #FFCFF0FC, 
	   ExcelBackgroundColor = #FFCFF0FC,
	End If

	If (RowName contains 'NoZebra') or (IsColHeader = true) then
	   BackgroundColor = #FFFFFFFF, 
	   ExcelBackgroundColor = #FFFFFFFF, 
	end if

end if

JackLacava_0-1680185196629.png

 

Veteran
Mar 30, 2023 11:35 AM UTC

Hey!
You can not change that. Onestream considers that the first row is actually the header. That means that odd are always the line with the headers. 
Do you think you could use  IsRowNumberEven = True instead?

Newcomer
Mar 30, 2023 12:25 PM UTC

Yes, we have it switched in other reports but in a few of our reports we need the first row of data to be white so all the odd rows need to be blue. I was hoping there was a way to directly reference that cell to format it, but it seems there isn't.