Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi community!
I have got such a problem.
I am using DirectQuery to connect to the DWH. Every day I need to have the information about yesterday. So, that fact table have a filter, which keep the rows only with the yesterday date. I decided not to use the yesterday date formula exactly in the fact table query. I create a Blank Query with the following formula:
And after that, I put @Yesterday into the fact table filter:
All is fine, all is working and in the queries, and in the dashboard panel.
The report isn't published yet and it is on Power BI Desktop construction step.
Next day I opened the report, but the visualization(datas and the date card), after autoupdating, didn't update. I saw the information not for yesterday but for day before yesterday.
I went to the queries and saw, that the fact table FACT_DATE column had the yesterday date, so it is correct.
I went back to the report and made refresh manually, but it didn't change anything.
In the queries I noticed, that Yesterday query has question mark on it:
Normally, it must have this shape, and after only click on it, the icon changed.
But even that didn't help.
The report update and display right visualisation only after:
Have you got any solution?
Thank you in advance!
Hi @MCstudio ,
The question mark before the table means that query isn't currently evaluated(loaded). I suggest you don't create a seperate yesterday query, directly add the code in the main table like this:
let
Source= Sql.Database(....),
dbo_=Source(....)[Data],
#"Filtered Rows"= let yesterday=Date.from(Date.AddDays(DateTime.LocalNow(),-1))
in Table.SelectRows(dbo_,each[FACT_DATE]=yesterday),
.
.
.
in
...
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @v-yanjiang-msft .
I tried your suggestion, but it didn't work. As before, the date and the other data are updating only in the Power Query table, but not on the dashboard.
Thank you for your answer. As I remember, I tried that metode too and it didn't work. But I am not sure, so I will try it, may be a second time 😁 I'll edit the code, on monday, at work and will check the result on tuesday. I'll let you know about results.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
102 | |
53 | |
21 | |
12 | |
12 |