当前位置:网站首页>Bi-sql top
Bi-sql top
2022-06-25 01:12:00 【Powerbi white tea】

TOP function
TOP function , It belongs to one of the advanced functions , It can usually be used to return a fixed number of rows .
For fact tables of a certain magnitude , This function can view the data quality , Very versatile .
stay PowerBI in , There are also corresponding functions ——TOPN function .
Portal :《TOPN Function month on month breakpoint 》
Basic grammar
grammar 1:
SELECT TOP Numbers FROM The name of the table
grammar 2:
SELECT TOP Numbers PERCENT FROM The name of the table
matters needing attention
MySQL and Oracle It's similar in TOP Use ;
MySQL and Oracle As a standard database , And SQL Server Be the same in essentials while differing in minor points , Some details are different ;
MySQL Medium is LIMIT function ,Oracle yes ROWNUM function .
Using examples
Case data :

In the database of white tea machine , There is a name “TEST” The database of , There is a name “ Product list ” Case data for .
Example 1:
stay PowerBI To take “ Product list ” Before 5 That's ok .
SELECT TOP 5 * FROM Product list

give the result as follows :

You can see the top... In the product table 5 Rows have been imported into PowerBI in .
Example 2:
stay PowerBI To take “ Product list ” Medium [ Name of commodity ] front 5 That's ok .
SELECT TOP 5 Name of commodity FROM Product list

give the result as follows :

You can see the front of the product name in the product table 5 Rows have been imported into PowerBI in .
Example 3:
Import 30% of the information in the product table into PowerBI in .
SELECT TOP 30 PERCENT * FROM Product list

give the result as follows :


You can see , About 30% of the information in the product table has been imported into PowerBI in .
Have a chat :
In fact, the early data processing was not divided so clearly , The initial positioning is just IT Management database .
With the development of market demand , The workload of data processing is gradually increasing , More and more enterprises begin to pay attention to the value of data , Therefore, the front-end is slowly derived 、 Middle end 、 Back end .
front end : It usually refers to the presentation of data , The styles presented include but are not limited to BI visualization 、Bowler Key indicators 、Detail Detailed reports, etc , As long as the value of data can be presented and promoted Business process , Then it belongs to the front-end presentation .
Middle end : It usually refers to the stage from data warehouse to front-end presentation , In general , At this time, the data transmitted are all processed . such as : Data is simply aggregated 、 Several warehouses have cleaned up garbage data 、 from Cube To the front end, etc .
Back end : Usually refers to the extraction of data , conversion , cleaning , Stage of storage , It can also be called ETL. It can be said to be the basis of data .
A lot of times , Mastered PowerBI, It means you are good at front-end field , But as time goes on , This requires us to understand the previous knowledge of the front end , To increase our competitiveness .
therefore , In my spare time , You can learn more about other things , After all, art is more than pressure .


This is white tea , One PowerBI Beginners .
边栏推荐
猜你喜欢
随机推荐
Lenovo tongfuyao: 11 times the general trend, we attacked the city and pulled out the stronghold all the way
[redis realizes seckill service ②] solution to oversold problem
ImageView shows network pictures
戴尔为何一直拒绝将商用本的超薄推向极致?
108 pages (40000 words) proposal for future apartment intelligent design platform project (version 2022)
QT(35)-操作EXCEL-QXlsx-QAxObject
最新QQ微信域名防红PHP程序源码+强制跳转打开
EVM Brief
Danish Technical University pioneered the application of quantum computing to power flow modeling of energy system
网上开户选哪个证券公司?网上开户安全么?
[microservices sentinel] cluster link | microservices cluster environment construction
4年工作经验,多线程间的5种通信方式都说不出来,你敢信?
bindservice方法实现音乐播放暂停
利用 Redis 的 sorted set 做每周热评的功能
A plug-in framework for implementing registration free and login verification with hook technology
Simulation questions and answers of the latest national fire facility operator (senior fire facility operator) in 2022
Cobalt Strike安装教程
2022 simulated 100 questions of safety officer-c certificate examination and online simulated examination
Scala object blending trait
Previous basic review









