BI Project notes Select output Analysis cube

Source: Internet
Author: User

Original: BI project notes Select output Analysis cube

Data Source settings:

Data processing logic:

--I_gbgradeidSELECT  * fromT_npick_pkgmovWHEREI_gbgradeid not inch(SELECTI_gbgradeid fromT_gbgradecode)DELETE   fromT_npick_pkgmovWHEREI_gbgradeid not inch(SELECTI_gbgradeid fromT_gbgradecode)--V_customeridSELECT  * fromT_npick_pkgmovWHEREV_customerid not inch(SELECTC_custcode fromt_custominfo)ALTER TABLET_npick_pkgmovALTER COLUMNV_customeridVARCHAR(5) not NULL   --New business Date businessdate fieldALTER TABLET_npick_pkgmovADDBusinessdateINT NULL--Convert datetime to intUPDATET_npick_pkgmovSETBusinessdate= CAST(REPLACE(CONVERT(CHAR(Ten), D_time, -),'-',"') as INT)

Main indicators:

N_weight Weight _ Total

I_piece Number of pieces _ Total

Dimension tables that need to be extracted:

Serial number

Table name

Description

Note

1

T_gbgradecode

Tobacco leaf Grade

2

T_distinction

Tobacco Grade

3

T_origin

Origin

4

T_purchasetype

Acquisition Type

5

T_tlproctype

Type of processing

6

T_custominfo

Customer

The fact table that needs to be extracted:

Serial number

Table name

Description

Note

1

T_npick_pkgmov

Select Outputs

V_cyclenode 01 selection of outputs

Project structure:

Browsing effect:

Client:

BI Project notes Select output Analysis cube

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.