Forum Discussion
Haaris_Uddin
4 years agoNew Contributor III
If Then Statement
SOURCE: ONESTREAM CHAMPIONS
Hi,
We are looking to take the values of a specific column and divide everything in it by 3. Was hoping to accomplish this via a Column Override. In the Cell Format wi...
TerryLedet
4 years agoNew Contributor III
Haaris
My suggestion would be to create a member with a member formula which is typically done in the UD8 dimension. In the member formula, you can create a variable for the cell amount defined as needed and then based on the value in the variable create the If Then logic which would be similar to your example.
Terry
- AndyR4 years agoNew Contributor III
Hi Haaris,
Without knowing everything you’re trying to do, where I would start would be to use the column Header Format of: IsColumnVisible = CVMathOnly for the column you’re wanting to divide. Then create a second column and use a GetDataCell or something like that with the math you want to apply to the other column. Hopefully that helps.
Thanks, Andy- Mike_Sabourin4 years agoContributor II
You can just use GetDataCell math to accomplish this and suppress zeroes. I added a column to a cube view and did GetDataCell(Divide(CVC(CurrMos), 3)):Name( Div by 3) where CurrMos is the first column in my cube view.
- Haaris_Uddin4 years agoNew Contributor III
Thanks Michel!! That worked.
- AndyR4 years agoNew Contributor III
Hi Haaris,
As you’re learning what’s possible and how to do it, I’d suggest a good way to do that is by opening the Member Filter Builder (the ellipsis at the end of the Member Filter field) and look at the Samples tab. There is a lot of information you can gather from those. For this specific issue, you can see the syntax under Column/Row Expressions.
- Haaris_Uddin4 years agoNew Contributor III
Thanks Terry. Member formulas are something that I need to get much better at. https://onestreamchampions.influitive.com/forum/u/andy.renich will use “IsColumnVisible = CVMathOnly” for the column we are dividing. Appreciate it!
Related Content
- 2 years ago