By using this website, you agree to our Terms of Use (click here)
I'm attempting to pull a row value from a specific UnitCode in order to allocate costs amongst all the UnitCodes. Here's what I have tried so far in my RowSet:
=Value('0109',@UnitCode)/Value('0109','TOTAL'). Where 0109 is total sales value and TOTAL is the UnitCode that combines all Units. Goal is to return % of sales for each Unit.
=Value('0472',@UnitCode)/*-Value('0420','HQQ'). Where 0472 is the row where the formula above is , 0420 is the row value to allocate and HQQ is the specific UnitCode to pull row 0420 value from. Goal is to apply the % of sales for each UnitCode to the 0420 value for UnitCode HQQ.
In addition, my column set has multiple columns: Budget,Actual,Prior Year, Budget Variance and Prior Year Variance.
Neither of these formulas work.
I was able to get this done in a different report using @ColumnCode where I was only referencing the value in one particular column and was not using Unit Codes, but I'm not sure how to get the value into the row set from one particular UnitCode.
Thanks for your help!
I don't think you can pull from a specific Unit Set using the Value formula. The Value formula takes two arguments: the Row Code and the Column Code (not a Unit Set Code).
The only way that I can think of at the moment to do what you are looking for would be to pull the individual values that you want into hidden rows. Then reference the hidden rows in your division calculation. Does that make sense?
There is a Unit Group field on the Row Sets (CS206010) screen that you might look into, but I don't think that it will do what you are looking for.
The hidden row idea is a good idea, but I think that you will need to duplicate your Unit Set logic into the Data Source field on the hidden rows because I don't know of a way to reference the Unit Set directly. Will that be difficult to do? Is your Unit Set logic complex?