Computed Column Won't Show in Available Fields
Posted: Mon Dec 14, 2009 6:03 pm
Since I'm new to this forum, let me just say that I am working hard to put together some "must-have" mgt. information dashboards in order to sell this product to my employers -- so I hope you won't think I am asking too many questions as I work through the learning curve.
I created a dynamic view that contains a calculated column. I can click the execute button any my calculated column QPrice displays in the result set.
However in report design that column does not show as an available field. According to the documentation it should. What might I be doing wrong? I can probably work around this by defining the calculated field in the report definition itself, but I want this field to be available across multiple reports.
Thanks,
Bob
I created a dynamic view that contains a calculated column. I can click the execute button any my calculated column QPrice displays in the result set.
However in report design that column does not show as an available field. According to the documentation it should. What might I be doing wrong? I can probably work around this by defining the calculated field in the report definition itself, but I want this field to be available across multiple reports.
- Code: Select all
SELECT
D.[IDNO], D.[JCREPS_IDNO], F.[LASTNAME], D.[CUST_IDNO], E.[NAME], D.[PLANNER], D.[PROD_CODE], D.[ORDER_CODE], D.[ENTDATE], D.[PROMISED],
D.[SHIPPED], D.[INVOICED] BillDate, H.[INV_AMT] BillAmt, D.[PRICE], D.[QUOTED_PRICE],
CASE WHEN d.[Price] > d.[Quoted_Price] THEN d.[Price]
ELSE d.[Quoted_Price]
END QPrice,
D.[QUANTITY], D.[TITLE], D.[SPECS_1], D.[SPECS_2], D.[LBR_ACT], D.[MATL_ACT], D.[PAPER_ACT], D.[PURCH_ACT], D.[SELL_LBR], D.[SELL_MATL], D.[SELL_PAPER], D.[SELL_PURCH], H.[JOB_COST], H.[BILL_COST], H.[LBR_CST]
FROM dbo.JCJOBS01 D
LEFT JOIN dbo.JCREPS01 F ON D.JCREPS_IDNO = F.IDNO
LEFT JOIN dbo.JCCUST01 E ON D.CUST_IDNO = E.IDNO
LEFT JOIN dbo.JCJHST01 H ON D.IDNO = H.JOB_NO
Where D.[ENTDATE] > '01/01/2007'
Thanks,
Bob