Forum Discussion
how to create temp table with same sample like table on base
- 6 years ago
Hi LeaRupnik ,
Does that make sense? If so, kindly mark my answer as the solution to close the case please. More people will benefit from here. Thanks in advance.
Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi LeaRupnik ,
If you want to import the data, you could try add the code into "SQL statement" while connecting SQL Server.
If you want to create a new table, you could try the function of SUMMARIZE. Here are some blogs that you can learn from.
best practices using summarize and addcolumns
Joining tables in Power BI with Power Query and DAX
side effects in dax of the sort by column setting
Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- LeaRupnik6 years agoHelper III
Hello.
i woud like to do tempory table in PowerBi. At first i greate tem table
Temp1 = DISTINCT(SELECTCOLUMNS(ORGANIZACIJA;"PARENT_ID";ORGANIZACIJA[PARENT_ID];"ID";ORGANIZACIJA[ID];"i";1))Now i woud luke to ask how in do tempory table include where function from another table likePROGENOT IN (SELECT DISTINCT PROGENOT FROM DW.PAKIRANO)Thanks.
LP
LEa
- v-xuding-msft6 years agoCommunity Support
Hi LeaRupnik ,
Sorry for late back. You could use CALCULATETABLE function or FILTER function to add filter conditions like "where" in SQL.
Table 2 = CALCULATETABLE (VALUES('Table'[Country]),'Table'[Product] = "Paseo" )Reference:
https://www.sqlbi.com/articles/filter-vs-calculatetable-optimization-using-cardinality-estimation/
Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- v-xuding-msft6 years agoCommunity Support
Hi LeaRupnik ,
Does that make sense? If so, kindly mark my answer as the solution to close the case please. More people will benefit from here. Thanks in advance.
Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.