当前位置:网站首页>PowerPivot - DAX (function)
PowerPivot - DAX (function)
2022-07-07 05:53:00 【Begin to change】
Catalog
One 、CALCULATE( a key )
1、 Introduce
Evaluate the expression in the modified filter context .
2、 grammar
CALCULATE(<expression>[, <filter1> [, <filter2> [, …]]])
3、 Parameters The expression used as the first parameter is essentially the same as the measure .
Filter can be :
Boolean filter expression
Table filter expression
Filter modification function
If there are multiple filters , have access to AND (&&) Logical operators To calculate these filters , This means that all conditions must be TRUE, Or use OR (||) Logical operators to calculate , This means that only one condition is true that will do .
4、 example
Two 、FILTER
1、 Introduce
Return to a table , Used to represent a subset of another table or expression .
2、 grammar
FILTER(<table>,<filter>)
You can use FILTER Reduce the number of rows to be used in the table , And only specific data is used in the calculation . FILTER Do not use alone , Instead, it is used as a function embedded in other functions that require tables as parameters .
3、 example
3、 ... and 、ALL
1、 Introduce
Return all values in all rows or columns in the table , Also ignore any filters that may have been applied . This function is very useful for clearing filters for all rows in the table and creating calculations for all rows in the table .
2、 grammar
ALL( [<table> | <column>[, <column>[, <column>[,…]]]] )
3、 example
Four 、RELATED
1、 Introduce
Return relevant values from other tables .
2、 grammar
RELATED(<column>)
3、 example
At this time, the data of a table needs to be spliced together
边栏推荐
- Classic questions about data storage
- 话说SQLyog欺骗了我!
- Lombok plug-in
- Mybaits multi table query (joint query, nested query)
- 《2022中国低/无代码市场研究及选型评估报告》发布
- 高级程序员必知必会,一文详解MySQL主从同步原理,推荐收藏
- What is dependency injection (DI)
- Flask1.1.4 Werkzeug1.0.1 源码分析:启动流程
- yarn入门(一篇就够了)
- Web authentication API compatible version information
猜你喜欢
随机推荐
Harmonyos practice - Introduction to development, analysis of atomized services
Ten stages of becoming a Senior IC Design Engineer. What stage are you in now?
PTA 天梯赛练习题集 L2-004 搜索树判断
"Multimodal" concept
R language [logic control] [mathematical operation]
Mybaits multi table query (joint query, nested query)
Paper reading [semantic tag enlarged xlnv model for video captioning]
毕业之后才知道的——知网查重原理以及降重举例
What are the common message queues?
What is message queuing?
An example of multi module collaboration based on NCF
消息队列:重复消息如何处理?
AI人脸编辑让Lena微笑
【已解决】记一次EasyExcel的报错【读取xls文件时全表读不报错,指定sheet名读取报错】
The 2022 China low / no code Market Research and model selection evaluation report was released
[reading of the paper] a multi branch hybrid transformer network for channel terminal cell segmentation
搞懂fastjson 对泛型的反序列化原理
Flask1.1.4 Werkzeug1.0.1 源碼分析:啟動流程
PTA 天梯赛练习题集 L2-003 月饼 测试点2,测试点3分析
SQLSTATE[HY000][1130] Host ‘host. docker. internal‘ is not allowed to connect to this MySQL server