如何在 PowerBI 上使用 DAX 查询从现有 table 创建新的 table?
How to create new table from existing table using DAX query on PowerBI?
我正在尝试使用 PowerBI 的 DAX 查询使用现有的 table 创建一个新的 table,有没有最好的选择?
我的 table 是
转到“建模”选项卡并select一个新的table选项
您将在下方获得 DAX 查询编辑选项
查询: 编写查询以从现有 table
创建新的 table
CustomerOccupation = SUMMARIZE('KPIMapReduce?limit=10000&stale=false&connection_timeout=60000&inclusive_end=true','KPIMapReduce?limit=10000&stale=false&connection_timeout=60000&inclusive_end=true'[CustomergetOccupation],'KPIMapReduce?limit=10000&stale=false&connection_timeout=60000&inclusive_end=true'[ClerkCount],'KPIMapReduce?limit=10000&stale=false&connection_timeout=60000&inclusive_end=true'[DriverCount],'KPIMapReduce?limit=10000&stale=false&connection_timeout=60000&inclusive_end=true'[FarmerCount],'KPIMapReduce?limit=10000&stale=false&connection_timeout=60000&inclusive_end=true'[WorkerCount],'KPIMapReduce?limit=10000&stale=false&connection_timeout=60000&inclusive_end=true'[OthersCount])
结果:我们的新table准备好了
有多种方法可以做到这一点。
您可以使用建模 > 新建 Table 中的 DAX 创建计算的 table 并编写 DAX 表达式,例如:
MonthlySum = SUMMARIZE(SAP_INCURRED,SAP_INCURRED[Posting Date].[Month],SAP_INCURRED[amount])
enter image description here
另一种选择是从查询编辑器中复制现有的 table
查询编辑器 > Select a table 并右键单击 > Select 复制
enter image description here
我正在尝试使用 PowerBI 的 DAX 查询使用现有的 table 创建一个新的 table,有没有最好的选择?
我的 table 是
转到“建模”选项卡并select一个新的table选项
您将在下方获得 DAX 查询编辑选项
查询: 编写查询以从现有 table
创建新的 tableCustomerOccupation = SUMMARIZE('KPIMapReduce?limit=10000&stale=false&connection_timeout=60000&inclusive_end=true','KPIMapReduce?limit=10000&stale=false&connection_timeout=60000&inclusive_end=true'[CustomergetOccupation],'KPIMapReduce?limit=10000&stale=false&connection_timeout=60000&inclusive_end=true'[ClerkCount],'KPIMapReduce?limit=10000&stale=false&connection_timeout=60000&inclusive_end=true'[DriverCount],'KPIMapReduce?limit=10000&stale=false&connection_timeout=60000&inclusive_end=true'[FarmerCount],'KPIMapReduce?limit=10000&stale=false&connection_timeout=60000&inclusive_end=true'[WorkerCount],'KPIMapReduce?limit=10000&stale=false&connection_timeout=60000&inclusive_end=true'[OthersCount])
结果:我们的新table准备好了
有多种方法可以做到这一点。 您可以使用建模 > 新建 Table 中的 DAX 创建计算的 table 并编写 DAX 表达式,例如:
MonthlySum = SUMMARIZE(SAP_INCURRED,SAP_INCURRED[Posting Date].[Month],SAP_INCURRED[amount])
enter image description here
另一种选择是从查询编辑器中复制现有的 table 查询编辑器 > Select a table 并右键单击 > Select 复制
enter image description here