cancel
Showing results for 
Search instead for 
Did you mean: 

[50005] - valueAxis : does not meet the minimum or maximum number of feeds definition error

Muthu_raja
Active Participant
0 Kudos

Hello Team,

I am trying ALP FE application using CDS annotations. I am facing below issues

  • When I use preview in the Service Binding (OData v2) the chart is not showing. Is this expected behavior ?
  • When I integrated with the UI FE where getting below error instead of chart ?

[50005] - valueAxis : does not meet the minimum or maximum number of feeds definition

My C view would be,

@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Consumption for Flight ALP'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
serviceQuality: #X,
sizeCategory: #S,
dataClass: #MIXED
}
//@Analytics.query: true
@VDM.viewType: #CONSUMPTION
@UI.chart: [{
qualifier: 'ChartBookingPricePerCntry',
chartType: #COLUMN,
dimensions: [ 'BookingPrice' ],
measures: [ 'CustomerCountry' ],
dimensionAttributes: [{
dimension: 'BookingPrice',
role: #SERIES
}],
measureAttributes: [{
measure: 'CustomerCountry',
role: #AXIS_1
}]
}]
@UI.presentationVariant: [{ qualifier: 'Default', visualizations: [{ type: #AS_CHART, qualifier: 'ChartBookingPricePerCntry' }] }]
define view entity ZC_QUERY_FLIGHT_ALP
as select from ZI_CUBE_FLIGHTBOOKINGS
{
@AnalyticsDetails.query.display: #KEY_TEXT
@UI.lineItem: [ { position : 10 } ]
key Airline,
@UI.hidden: true
key FlightConnection,
@UI.hidden: true
key FlightDate,
@UI.hidden: true
key BookNumber,
@UI.selectionField: [ { position : 10 } ]
@AnalyticsDetails.query.display: #KEY_TEXT
CustomerCountry,
@UI.selectionField: [ { position : 20 } ]
CalendarYear,
// @UI.lineItem: [ { position : 20 } ]
// TotalOfBookings,
@UI.dataPoint.title: 'Weight of Luggage'
@UI.lineItem: [ { position : 30 } ]
@Semantics.quantity.unitOfMeasure: 'WeightUOM'
WeightOfLuggage,
WeightUOM,
@DefaultAggregation: #SUM
@Semantics.amount.currencyCode: 'Currency'
@UI.lineItem: [ { position : 40 } ]
BookingPrice,
Currency
}
where
(
Airline = 'AA'
or Airline = 'DL'
)
and(
CustomerCountry = 'DE'
or CustomerCountry = 'US'
)



Please help me here

Best Regards,

Muthu

Accepted Solutions (0)

Answers (0)