Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support output transformation within the duplicate alteration #618

Closed
Seddryck opened this issue Jan 2, 2021 · 1 comment
Closed

Support output transformation within the duplicate alteration #618

Seddryck opened this issue Jan 2, 2021 · 1 comment

Comments

@Seddryck
Copy link
Owner

Seddryck commented Jan 2, 2021

At the moment, it's possible to add columns for index and total, it should also be helpful to add flags (boolean) to specify if the row is the original and if the predicate is true or false (meaning if the row must be duplicated).

<output column="Value" value="is-original">
<output column="Value" value="is-duplicated">

On top of this, it should be possible to override the value of some existing columns. Typically you're using a duplicate to transform a single yearly value into twelve monthly values but by doing this you are also dividing by twelve the yearly value.

<output column="Value" value="script">
   <script language="native">
        [Value] | numeric-to-divide(12)
   </script>
</output>
@Seddryck
Copy link
Owner Author

Seddryck commented Jan 6, 2021

Implemented and documented in 1.23.0-beta.68 or on nuget via Update-Package NBi.Framework -version 1.23.0-beta0068.

@Seddryck Seddryck closed this as completed Jan 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant