Cube View Formatting

jordielane
New Contributor III

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. 

 

1 ACCEPTED SOLUTION

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

 

View solution in original post

6 REPLIES 6

JackLacava
Community Manager
Community Manager

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

JackLacava_0-1680166589892.png

 

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. 

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

 

That worked, thank you so much!

NicolasArgente
Valued Contributor

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?

Connect with me on:
LinkedIn: https://www.linkedin.com/in/nicolas-argente/
Website: https://aiqos.io
If you want to lift yourself up, lift up someone else.

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.