Example: Query Source "Environment"
This example shows how you can create a simple query and define that the key figures are editable.
Input Function
| Customer | Product | Quantity | Amount |
|---|---|---|---|
| CN001 | PROD01 | 50 | 500 |
| CN002 | PROD02 | 100 | 1000 |
| CN002 | PROD03 | 200 | 2000 |
| CN003 | PROD01 | 250 | 2500 |
Fixed Values
You can add the field Customer and select “Selection option” and “Optional” in the Variable section.
Default Values
You can add the field Product and select the value “PROD01” in the Selection section.
Columns:
You first define the key figure structure and then include the key figure formula. You can select individual key figures and set the Editable indicator to “Yes”.
| Name | Rule Type | Editable |
|---|---|---|
| KYF | STR | |
| Quantity | KYF | Yes |
| Amount | KYF | Yes |
| Price per Unit | FML = Amount/Quantity |
Rows:
| Name | Rule Type |
|---|---|
| Customer | CHA |
| Product | CHA |
Free:
This is left empty.
Query Output
| Customer | Product | Quantity | Amount | Price per Unit |
|---|---|---|---|---|
| CN001 | PROD01 | 50 | 500 | 10 |
| CN003 | PROD01 | 250 | 2500 | 10 |
You can change the values of the key figures Quantity and Amount and save these values.