Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
13 | |
8 | |
8 | |
7 |
User | Count |
---|---|
17 | |
13 | |
7 | |
6 | |
6 |