PowerBI dynamic m query parameters not bound - Stack Overflow

I have a simple data model consisting of two model tables, vw_business_date and fnc_cash_flow_report. T

I have a simple data model consisting of two model tables, vw_business_date and fnc_cash_flow_report. The vw_business_date is partitioned by a (valuation) scenario and each row contains a business date, the previous day's business date, the latest business date from the previous month and the latest business date from the previous year. The fnc_cash_flow_report is a direct query of a SQL function query that takes as an input the scenariod id and the 4 business dates and returns the latest cash flow valuation for the business date plus change in valuation since the previous dates (i.e. day to day change, month to date change etc.).

I've set up M query parameters for the parameters passed to the function and bound them to the vw_business_date columns and then set up a slicer to select the scenario and the business date (i.e. a row in vw_business_date) and a matrix to display the sum cash flow values for this data.

However, when I select a buiness date the other bound parameters don't change (i.e. prev business date, etc.) so the wrong query is run.

Here's a few pictures to make things clearer (in the screen shot the business date is selected as the 10th Feb but the data is queried for a previous date of 5th Feb when it should be the 7th):

I am running direct queries against Databricks Delta Tables but I don't think that is the relevant factor as it seems to be an issue with parameter binding.

Can anyone explain why this doesn't work and perhaps suggest a workaround?

Much obliged,

David

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745211547a4616869.html

相关推荐

  • PowerBI dynamic m query parameters not bound - Stack Overflow

    I have a simple data model consisting of two model tables, vw_business_date and fnc_cash_flow_report. T

    8小时前
    40

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信