We have a formula that should always be aggregated by the Ledger Currency in FDI but it also may need to be visualized by other dimensions: Fiscal Year, or Business Unit, Supplier, etc.
Currently, we set the values tab on the properties tab for the visual
- Aggregation Method: Sum
- By: Ledger Currency, Fiscal Year, etc.
Attempt using formula:
Using aggregate by function, we can get enforce the granularity of the calculation, but this overrides the default aggregation of the visual.
sum( aggregate( Payments Amount * Ledger Exchange Rate by Ledger Exchange Rate )
The formula above will show the right total for a card visual, but if put on a bar chart with fiscal year on the axis, it shows the same amount for every fiscal year.
Is there any way to write a formula that will work well in a variety of contexts, or is this something that must be set every time the calculation is used on a visual?
Thanks,