Henry wants to get deeper in the Derivation concept and therefore now focuses on the Rule Type Derivation Rule.
In the following the set-up of the second rule in the derivation rule sequence is described.
With the Product_Line filled according to the first derivation rule, we now have to explain according to which logic the characteristic value of the Price_Category in the profitability segment has to be filled by the system.

First, the characteristic Price_Category has to be set up using the app Custom Fields. The following figure describes the settings.

Then, the C_JournalEntryItemBrowser CDS view has to be searched for. The Odata service and Odata entry have to be activated and finally the Price_Category has to be activated. Price_Category is now available in table ACDOCA and ACDOCP.

The next step is to transfer the Price_Category into the operating concern.

Re-opening the app Custom Fields, search and activate the relevant reporting CDS views for margin analysis.

Save and activate the Price_Category dimension again.
Then set up the Derivation Rule. In our scenario, we define Product_Line as the source field and Price_Category as the target field.

In the next step we maintain the rule values table as described in the following figure.

So, if in a posting Product_Line has the characteristic value BASIC, the Price_Category characteristic value ENTRY_LEVEL is automatically found by the system and written into the data set.
When the maintained rule values are saved you can test your derivation.

Finally, you can check if both derived characteristics can be used in the app Market Segments — Actual.
