Forum Discussion

analytical_mind's avatar
analytical_mind
Frequent Visitor
4 years ago
Solved

Relative date filter showing blank value when report is uploaded to service

Hey everyone,

 

I have developed a dashboard where I am able to separate "on time" orders (delivery date in the future) and "backlog" orders (delivery date in the past, and not yet fully delivered).

 

My fact table basically consists of:

 

Delivery date (in DD/MM/YYYY format)Open Quantity (decimal number format)

Backlog flag (calculated column):

 

if [open quantity] > 0 && [delivery date] < today () then "Backlog",

 

else: "Ok"

 

 

Adjusted delivery date (calculated column:

 

if [backlog flag] = "Backlog" then today (),

 

else [delivery date]

 

I also do have a dimension table with all dates, which I use as my main date filter. The relationship is one to many (from dim_date[date] to fact_table[adjusted delivery date]).

 

I have created 3 measures to summarize these fields:

 

measure 1: calculate ( sum( [open quantity] )

measure 2: calculate ( sum( [open quantity] ), [backlog flag] = "Backlog" )

measure 3: calculate ( [measure 1] - [measure 2] )

 

Then I have created 2 cards in the dashboard containing each: measure 2 and measure 3

 

So here's the thing: on my dashboard, I'm using the relative date functionality as a filter (page filter, as seen in the screenshot below) and it works flawless while I'm using the app.

 

 

After I have uploaded the report to the pbi service, on d+1 (which translates to if I upload today, the problem will happen tomorrow) the card with measure 3 will show data and the card with measure 2 will show (Blank).

 

I expected both cards to show data until a new upload is made.

 

I also do think that the problem might be related to the Relative date filter, but I'm lacking knowledge here. Could you kindly help me out?

 

Thanks!

  • collinq's avatar
    collinq
    4 years ago

    Hye analytical_mind ,

     

    That might be it....the LocalNow might be using the UTC Service time?  Perhaps use a DAX formula or use Query Editor to set the time to a specific time zone?

4 Replies