Skip to main content
Solved

Added condition under row style to highlight records based on the profit margin, but it's not working for those lines where revenue budget exist and it's working fine if revenue budget doesn't exist under project --> Revenue Budget


Forum|alt.badge.img

Hi,

 

I have added a condition under row style to highlight records based on the profit margin. However, I have noticed that this condition is not working for those lines where revenue budget exists, but it is working fine if revenue budget doesn't exist under the project's Revenue Budget.

 

For instance, in the below attached screenshot, you can see that the revenue to date is 0 for project P10221, and the cost to date is 487.50 which is highter than revenue to date. However, it is not highlighting this record based on the row style condition set under the GI.

 

attached GI for your reference.

 

Best answer by aaghaei

For the sake of clarification in case someone else comes across this post, it is possible but requires some customizations. Without customization yes it is not possible.

View original
Did this topic help you find an answer to your question?

11 replies

Robert Sternberg
Captain II
Forum|alt.badge.img+7

Hi 

I am having trouble downloading your XML.  Could you share your formula for row style?

 

Thank you


Forum|alt.badge.img
  • Author
  • Varsity I
  • 43 replies
  • March 9, 2023

Hi @rsternberg96

 

Thanks for looking into it, appreciate your help.

below is the formula, which i’ve added under row style.  I’ve also attached project GI for your reference. Hope you will be able to download it from there. 

 

=IIF(( IIf( [PMAccountGroup.Type]='I', [PMBudget.ActualAmount], -[PMBudget.ActualAmount]) < 0), 'red40' , 'default') 


Robert Sternberg
Captain II
Forum|alt.badge.img+7

It looks like you are using an aggregate function for Costs to Date and Revenue to Date in the result set.  In your Row Style Function you are not using aggregates.  I attempted to update your formula to allow for aggregate calculation but it does not look like aggregates are supported in the Row Style formula.  

 

Edit: 

You can add a column to get your desired result, sadly no color coding. 

 

You can use this formula. 

=IIf(Sum(IIf([PMBudget.Type] = 'E',[PMBudget.CuryActualAmount], 0))>Sum(IIf([PMBudget.Type] = 'I',[PMBudget.CuryActualAmount],0)),'RED','')

 

 


Forum|alt.badge.img
  • Author
  • Varsity I
  • 43 replies
  • March 10, 2023

Hi @rsternberg96 ,

Thanks for your quick response to my query, I really appreciated it.

As you mentioned, I’ve used aggregate function on the cost to date & revenue to date and however it appears that  sum formula can’t be applied in the row style condition. 

thanks for your help. i’ll check with client, if they want to proceed to put it in column without any colour coding.

Have a nice day :-)


aaghaei
Captain II
Forum|alt.badge.img+10
  • Captain II
  • 1201 replies
  • March 10, 2023

@psoni1585 I haven been to similar situations. The best way to overcome the limitation is to create a projection DAC and aggregate the data as you wish here then in GI use the projection DAC results without aggregation to style the results as you wish. 


Forum|alt.badge.img
  • Author
  • Varsity I
  • 43 replies
  • March 14, 2023

@aaghaei, if you can provide me customization code for the projection DAC to add profit margin under project screen, then it will be great for me. 

appreciate your help 👍

 


aaghaei
Captain II
Forum|alt.badge.img+10
  • Captain II
  • 1201 replies
  • March 14, 2023

@psoni1585 Sorry, I didn’t mean I had the exact case as yours. I meant styling when you have aggregation in place.


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • 2751 replies
  • April 19, 2023

Hi @psoni1585 were you able to find a solution? Thank you!


Forum|alt.badge.img
  • Author
  • Varsity I
  • 43 replies
  • April 20, 2023

Hi @Chris Hackett  Unfortunately i’m not able to fin any solution, because I’m using aggregate function in the GI result, so it’s not possible to color code row based on the profit margin.


Thanks. 


aaghaei
Captain II
Forum|alt.badge.img+10
  • Captain II
  • 1201 replies
  • Answer
  • April 20, 2023

For the sake of clarification in case someone else comes across this post, it is possible but requires some customizations. Without customization yes it is not possible.


Forum|alt.badge.img
  • Jr Varsity II
  • 31 replies
  • January 24, 2025

This no longer requires a customization, it can be done with the new ‘Data from Multiple Data Sources: Use of Generic Inquiry as Data Source’ functionality in 2024 R1.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings