简体   繁体   English

使用 Excel 单元格中的值作为 MS Power Query 中的过滤器

[英]Using value from Excel cell as filter in MS Power Query

I got an excel file which should use a query from an ms access file (which is a front end for a ms sql server) But instead of receiving every entry I want to use a filter by a value that is in one of the excel cells.我有一个 excel 文件,它应该使用来自 ms 访问文件的查询(这是 ms sql 服务器的前端)但是我不想接收每个条目,而是想使用 excel 单元格之一中的值的过滤器. So if in A1 is date 01.01.2000, I want to use this value to only show me all entries by that date因此,如果 A1 中的日期为 01.01.2000,我想使用此值仅显示该日期之前的所有条目

If do not need to use power query if there is an easier way to do it.如果有更简单的方法,则不需要使用电源查询。

You can pass a value into power query using a table and have your original query reference that cell/table.您可以使用表将一个值传递到 power query,并让您的原始查询引用该单元格/表。 More detail here: https://exceleratorbi.com.au/pass-excel-parameter-power-query/更多细节在这里: https://exceleratorbi.com.au/pass-excel-parameter-power-query/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM