Hey Team,
Happy New Year! Had a quick question on how to create a column in the flexmonster UI using conditional column construction and hierarchies. In the image attached, I want to create a new columns (named theta_2) which uses the following formula:
within the strike hierarchy level, if the total sum of qty = 0.0 (highlighted in the first column), set theta_2 = 0; otherwise theta_2 = theta
Please let me know if this would all be possible to construct in the flexmonster UI. Happy to share more detail if needed to get to the bottom of this.
Thanks,
Kapil
Hello, Kapil!
Thank you for contacting us.
There is a way of adding a calculated value via UI:
if(condition, then, else)
.For more info, please refer to this page with text descriptions and videos about the Flexmonster UI, including a section about calculated values: https://www.flexmonster.com/user-interface/
Feel free to contact us if any questions arise.
Best Regards,
Maksym
Hi Maksym,
Thanks for the timely response. Couple of quick things -- I have been able to create a calculated value in the Fields tab in the past, but this time the value is based off an aggregation condition. If the aggregate sum of the qty == 0 when the data is grouped by strike level, then I want to create a column theta_2 that will be 0 (or just equal to theta otherwise). I have attached another screenshot below to show what my current formula is and the hierarchy levels for my conditional column. Hopefully this clarifies better, but what is the correct way to go about this?
Also is there a way to color code columns in Flexmonster?
Hi, Kapil!
Hope you are doing well.
After adding a calculated value, it would be displayed as a separate measure. The formula of this measure would be calculated for all rows and columns of the data, either grouped or not. We recommend predefining all the measures you need in the report to be displayed on every load.
Speaking of setting colors to columns, there are two ways to do it:
customizeCell
function, which is defined as a standard API call or as an initialization parameter. Please see this documentation page for more details and examples; you can also refer to this JSFiddle, where the columns are highlighted depending on their index.
Feel free to contact us if additional questions arise.
Best Regards,
Maksym
Hi, Kapil!
We were wondering if our response helped with the question.
Looking forward to hearing from you.
Best Regards,
Maksym