当前位置:网站首页>Boutique enterprise class powerbi application pipeline deployment

Boutique enterprise class powerbi application pipeline deployment

2022-06-25 01:15:00 Powerbi white tea

We are in the process of implementing the project , Process has always been a very important concept .

For the sake of data confidentiality , The data we came into contact with during the development phase , It is often the data of the development environment . The data in the development environment is often too small , Or no real data , The data is mainly simulation , This can ensure that the development progress will not be affected , It can also keep the company's data confidential .

When the development phase is over , You need to switch the environment to the test environment , To test data and function points . The data of the test environment is compared with the development environment , Too much data , Data is usually historical data or some real data , Dimension relationship and data integrity are close to real data .

When the test is over , Will be switched to the production environment and put into use .

PowerBIServers Pipeline deployment

In general, the processing method of enterprises is to divide the environment in the data warehouse , and PowerBI On the cloud Servers The service introduces the pipeline deployment function .

So we can create parameters , To achieve rapid environment switching .

Let's first understand the service conditions ( Meet one of them ):

1. Your organization already has Power BI Premium subscribe , And you have the authority ;

2. You have Power BI Premium Per User (PPU) subscribe .

It is not difficult for us to see from the conditions of use , The pipeline deployment function is for enterprise applications PowerBI Prepared ;
If we want to learn, we can use a free account PPU Try to understand the overall operation process .

Next , We begin the overall process operation of pipeline deployment .

Data preparation :

In the white tea machine SQL Servers in , There is a name Dev、Test、Live Three databases of .

From the above results we can see that , The data table structure of the three databases is consistent , All single sheets Sales surface , There are only differences in the data magnitude .

New parameter :

open PowerBI, Enter into PowerQuery Interface .

Switch to “ View ” Interface , open “ Always allow ”.

Back to “ Home page ” Interface , choice “ Management parameters ” Below “ New parameter ”.

Name the parameter “Source”, The type is set to “ Text ”, The current value is set to “Tea”.

Continue adding parameters “Database”, Set the current value to “Dev”.

Select close and apply .

Connect to database :

Open get data , choice SQL Servers Data connection .

Here, change the server and database types to the two parameters we just set .

Select... In the database Sales surface .

New measure "Rows", Put it in the card diagram and let's have a look .

Rows =
COUNTROWS ( 'Sales' )

Come here , Our preparations are finished .

Time relation , White tea doesn't make too complicated reports for demonstration . We mainly understand the overall operation of pipeline deployment .

Create pipes :

Sign in PowerBI account number , Open my workspace panel , Select Create workspace .

Name it “ Development ”, License mode selection “Premium Per User”.

After the workspace is created , We can select... In the current workspace “ Create pipes ”.

Name it “ White tea ”, Choose to create .

Assign this workspace as “ Development ”.

In this case , Our first development pipeline was created .

Follow the steps above , We create... In turn “ test ”、“ production ” Environmental Science .

thus , Our pipeline is created .

Report deployment :

Take what we just had PowerBI file , Name it “Test”, Publish to the development environment .

Pipeline deployment :

stay “ Development ” In the pipeline , We can see the report file just uploaded , choice “ View in the pipeline ”.

Choose to deploy to “ test ” The Conduit .

choice “ test ” Pipeline deployment settings .

Choose a dataset , Enter the setting interface , We can see that there are data source rule settings and parameter rule settings , Here we choose “ Parameter rule settings ”.

notes : The data source rule settings are not recommended , It is convenient to use without parameters .

Select Add Rule , take “Database” Parameter set to Test.

According to the above operation , We deployed it to “ production ” Pipe and set .

thus , The overall process of pipeline deployment has been completed , Let's go into three environments to view the report data .

It can be seen from the overall valuation that , The difference between the data is consistent with the results we checked in the data warehouse .

matters needing attention :

White tea is used by this machine SQL Servers It needs to be used with a gateway , The specific operation will not be repeated here , Friends can try it by themselves .

This is white tea , One PowerBI Beginners .

原网站

版权声明
本文为[Powerbi white tea]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202210542593738.html