02-24-2024 06:42 AM
I want format the Cube view cell based on cell amount
If (CellAmount > GetDataCell(CVC(Col2)) )Then
BackgroundColor = Red, TextColor = White
End if
This code is not working, Actually I am comparing actual amount with budget.
how can we do this?
Solved! Go to Solution.
02-26-2024 05:25 AM
GetDataCell belongs to member filters, it cannot be used in Conditional Formatting statements.
Conditional Formatting rules can only look at the Cell contents and View Headers. So what you can do in your case is the following:
If (CellAmount > 0) Then
BackgroundColor=Red, TextColor=White
End If
If you don't want to show the number, simply set TextColor to the same as BackgoundColor (but note the number might leak anyway, when exported as Report or Excel), or play with number formatting to round it 0/1.
02-26-2024 05:25 AM
GetDataCell belongs to member filters, it cannot be used in Conditional Formatting statements.
Conditional Formatting rules can only look at the Cell contents and View Headers. So what you can do in your case is the following:
If (CellAmount > 0) Then
BackgroundColor=Red, TextColor=White
End If
If you don't want to show the number, simply set TextColor to the same as BackgoundColor (but note the number might leak anyway, when exported as Report or Excel), or play with number formatting to round it 0/1.