Secondary Y-Axis in Business Chart NAV 2013
dannyt
Member Posts: 6
Hi everybody,
I am currently designing a new business chart for my customer.
It will display the due quantities from Production Orders in dependency of the manufacturing policy.
This works very fine until now.
Now I have a new measure "No. of Production Orders".
There are ~100 due production orders but the due quantities is about 20.000.
I'd like to have a secondary Y-axis which goes up to ~100 and not ~20.000.
You can see the current state with ne no. of prod. orders in the green part of my screenshot.
What I'd like to have you can see in the other screenshot (just an foreign example).
Thank you.
I am currently designing a new business chart for my customer.
It will display the due quantities from Production Orders in dependency of the manufacturing policy.
This works very fine until now.
Now I have a new measure "No. of Production Orders".
There are ~100 due production orders but the due quantities is about 20.000.
I'd like to have a secondary Y-axis which goes up to ~100 and not ~20.000.
You can see the current state with ne no. of prod. orders in the green part of my screenshot.
What I'd like to have you can see in the other screenshot (just an foreign example).
Thank you.
0
Answers
-
My current C/AL code is as follows:
ChartType_L := 11; // StackedColumn WITH BusChartBuffer DO BEGIN Initialize; AddMeasure(MakeToStockLbl,1,"Data Type"::Decimal,ChartType_L); AddMeasure(MakeToOrderLbl,2,"Data Type"::Decimal,ChartType_L); AddMeasure(NoOfPOsLbl,3,"Data Type"::Integer,3); SetXAxis(DueInDaysLbl,"Data Type"::Integer); i := 0; ProdOrderDueQties_L.RESET; IF ProdOrderDueQties_L.FINDSET THEN REPEAT AddColumn(ProdOrderDueQties_L."Due in days"); // x-axis SetValue(MakeToStockLbl,i,ProdOrderDueQties_L."Make-to-Stock Totals"); SetValue(MakeToOrderLbl,i,ProdOrderDueQties_L."Make-to-Order Totals"); SetValue(NoOfPOsLbl,i,ProdOrderDueQties_L."No. of Prod. Orders Totals"); i+=1; UNTIL ProdOrderDueQties_L.NEXT = 0; END;0 -
Hi,
My suggestion would be that you
a) first get the max value for 'No. of Prod. Orders Totals' and the max value for Quantities and then
b) in SetValue divide the Quantities by the result of (MAX(Quantities) / MAX(No. of Prod. Orders Totals))
Perhaps someone sees a better solution but I don't.
Good luck.\\The truth exists in seven versions.0 -
Hi Peter+is1,
thanks for your comment.
I did a similar test where I multiplied the No. of Prod. Orders by 100. The chart looks good but the values to look at where wrong (not the right numbers in the y axis) and when I look at the tooltip of No. of Prod. Orders it shows 15000 instead of 150 :-(0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 324 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
