当前位置:网站首页>Power Bi -- these skills make the report more "compelling"“
Power Bi -- these skills make the report more "compelling"“
2022-07-25 11:59:00 【Xiao Chen Bu eats people】
These skills make the report more " Forced case "
1. Self made unit
Use PowerBI When , A very unpleasant thing is the setting of data units , Only a thousand 、 Millions of other British and American habits to show , Instead of trillions and other units we are used to in Chinese , Although it is required to add " ten thousand " The voice is very loud , But we haven't seen the improvement action for a long time , Maybe China PowerBI There are not enough users .
Today we set it by ourselves , The implementation is very simple , It's a commonly used number divided by 10000 , Then the unit becomes 10000 , Yi Tongli . Now let's see how to switch units through the setting of measures .
Build a measure
Ten thousand yuan = CALCULATE(sum([ Domestic sales ])/10000)
The effect is as follows :
You can even build a unit table
- Build unit tables and calculate metrics
Unit table = DATATABLE(“ Company ”,STRING,“ Unit value ”,INTEGER,{ {“ element ”,1},{“ Ten thousand yuan ”,10000},{“ One hundred million yuan ”,100000000}})
sales = CALCULATE(sum(‘fba_profit_data_processing_result’[ Domestic sales ]))/SELECTEDVALUE(‘ Unit table ’[ Unit value ],1)

- Unit table construction slicer
The effect is as follows :
2. Dynamic axis
Suppose the data to be analyzed is sales , Analyze from the two dimensions of the majority and the Group , The effect to be achieved is , If you choose most , Then the coordinate axis is the name of each part , Corresponding to the sales of each major department ; If you choose a group , Then the coordinate axis is group , It shows the sales of each group . The effect is as follows :

The implementation process is as follows :
- Combine the group and most into a table , As a follow-up dynamic axis
Axis index table =
VAR table1=SELECTCOLUMNS(ADDCOLUMNS(VALUES(‘team_dep’[ Most of it ]),“ indicators ”,“ Most of it ”),“ indicators ”,[ indicators ],“ Indicator details ”,[ Most of it ])
VAR table2=SELECTCOLUMNS(ADDCOLUMNS(VALUES(‘team_dep’[ team ]),“ indicators ”,“ team ”),“ indicators ”,[ indicators ],“ Indicator details ”,[ team ])
RETURN UNION(table1,table2)
The effect is as follows :
- Build the sales measure generated from the axis
Analyze the data =
SWITCH(TRUE(),
SELECTEDVALUE(‘ Axis index table ’[ indicators ])=“ Most of it ”,CALCULATE([ sales ],TREATAS(VALUES(‘ Axis index table ’[ Indicator details ]),team_dep[ Most of it ])),
SELECTEDVALUE(‘ Axis index table ’[ indicators ])=“ team ”,CALCULATE([ sales ],TREATAS(VALUES(‘ Axis index table ’[ Indicator details ]),team_dep[ team ]))
)
This measure first determines the choice of slicer , If you choose most , Then use TREATAS Function to build a virtual relationship between the axis schedule and the original , such [ sales ] You can filter and calculate normally ; The same is true when choosing groups .
3. Dynamic title
By default ,PowerBI The title of the chart is static , In order to enhance the readability of the chart , By setting the dynamic title , The icon title can be changed according to the screening index , The effect is as follows .

The implementation process is as follows :
- Create a title measure
Proportion title = if(
SELECTEDVALUE(‘ Most indicators ’[ indicators ])=“ refund ”,
“ Refund rate ( By month )”,
SELECTEDVALUE(‘ Most indicators ’[ indicators ])&“ Proportion ( By month )”
)
- Visual object setting Title

Skills are constantly being updated …
边栏推荐
猜你喜欢

MySQL historical data supplement new data

How to solve the problem that "w5500 chip cannot connect to the server immediately after power failure and restart in tcp_client mode"

dirReader. Readentries compatibility issues. Exception error domexception

【IMX6ULL笔记】--内核底层驱动初步探究

dirReader.readEntries 兼容性问题 。异常错误DOMException

阿里云技术专家秦隆:可靠性保障必备——云上如何进行混沌工程

Similarity matrix, diagonalization condition

JS process control

brpc源码解析(七)—— worker基于ParkingLot的bthread调度

Attendance system based on w5500
随机推荐
php curl post Length Required 错误设置header头
Introduction to pl/sql, very detailed notes
W5500 adjusts the brightness of LED light band through upper computer control
Zero-Shot Image Retrieval(零样本跨模态检索)
剑指 Offer 22. 链表中倒数第k个节点
小程序image 无法显示base64 图片 解决办法 有效
Plot ==pyqt5
教你如何通过MCU配置S2E为TCP Server的工作模式
[high concurrency] Why is the simpledateformat class thread safe? (six solutions are attached, which are recommended for collection)
OSPF综合实验
Experimental reproduction of image classification (reasoning only) based on caffe resnet-50 network
Varest blueprint settings JSON
brpc源码解析(一)—— rpc服务添加以及服务器启动主要过程
Return and finally? Everyone, please look over here,
flink sql client 连接mysql报错异常,如何解决?
Brpc source code analysis (VI) -- detailed explanation of basic socket
【高并发】高并发场景下一种比读写锁更快的锁,看完我彻底折服了!!(建议收藏)
[high concurrency] a lock faster than read-write lock in high concurrency scenarios. I'm completely convinced after reading it!! (recommended Collection)
JS operator
Intelligent information retrieval(智能信息检索综述)