如何在PowerBI上使用DAX查询从现有表创建新表?

如何在PowerBI上使用DAX查询从现有表创建新表?,powerbi,dax,powerbi-desktop,powerbi-datasource,powerbi-custom-visuals,Powerbi,Dax,Powerbi Desktop,Powerbi Datasource,Powerbi Custom Visuals,我正在尝试使用PowerBI的DAX查询使用现有表创建一个新表,是否有最佳选项 我的桌子是空的 转到“建模”选项卡并选择一个新的表格选项 您将获得下面的DAX查询编辑选项 查询:编写查询以从现有表创建新表 CustomerOccupation = SUMMARIZE('KPIMapReduce?limit=10000&stale=false&connection_timeout=60000&inclusive_end=true','KPIMapReduce?limit

我正在尝试使用PowerBI的DAX查询使用现有表创建一个新表,是否有最佳选项

我的桌子是空的


转到“建模”选项卡并选择一个新的表格选项

您将获得下面的DAX查询编辑选项

查询:编写查询以从现有表创建新表

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])
结果:我们的新桌子准备好了


转到“建模”选项卡并选择一个新的表格选项

您将获得下面的DAX查询编辑选项

查询:编写查询以从现有表创建新表

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])
结果:我们的新桌子准备好了


有多种方法可以做到这一点。 您可以使用建模>新建表格中的DAX创建计算表格,并编写DAX表达式,如下所示:

MonthlySum = SUMMARIZE(SAP_INCURRED,SAP_INCURRED[Posting Date].[Month],SAP_INCURRED[amount])

另一个选项是从查询编辑器复制现有表 查询编辑器>选择一个表,然后右键单击>选择重复


有多种方法可以做到这一点。 您可以使用建模>新建表格中的DAX创建计算表格,并编写DAX表达式,如下所示:

MonthlySum = SUMMARIZE(SAP_INCURRED,SAP_INCURRED[Posting Date].[Month],SAP_INCURRED[amount])

另一个选项是从查询编辑器复制现有表 查询编辑器>选择一个表,然后右键单击>选择重复