Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 213819

LOOKUPVALUE returns blank value

$
0
0

Hello, 
Following the recent help of Jahida (thanks again!), I managed to do some good progress with the dashboard I'm preparing for my boss. Unfortunately, I'm facing a new problem, related to LOOKUPVALUE that I didn't manage to solve.

Context
Previously, I needed to convert the time to BST in my 'Yearly'  table, during summer time only. I followed the solution provided here to create a Adjusted time column, [Time (Adj)].

Time(Adj) = IF(RELATED('Date'[IsBST]), Yearly[Time] + 1/24, Yearly[Time])

I'm mentioning it as I feel it might be related to my new issue somehow.

 

Now, I want to measure the contact volume per shift.


Approach
To that end, I created a calculated column 'Yearly'[Shift] in my 'Yearly' table, to display the shift corresponding to the 'Yearly''[Time (Adj)] time, based on my 'Time' table.

 

Shift = Lookupvalue(Time[Shift],'Time'[Time],Yearly[Time(Adj)])

For what I see, it works unless when the 2 conditions below are met:

- the value in the 'Yearly'[Time] Colum is  ranging between 23:00 and 23:59, Yearly'[Shift]
- the date is BST, e.g. 'Yearly'[Time] and 'Yearly'[Time(adj)] don't match

 

Any idea of what could be causing the issue?

Tables and relationship
Time table - https://www.imageupload.co.uk/images/2016/08/17/TimeTable.jpg
Yearly Table - https://www.imageupload.co.uk/images/2016/08/17/YearlyTable.jpg
Relationship - https://www.imageupload.co.uk/images/2016/08/17/Relationship.jpg


Troubleshouting

I checked other posts and I tried the following:
- remove the relationship between 'TIme' and 'Yearly' Table
- use the DAX Time function when refering to time
- use relate instead of lookupvalue (when the relationship is active)


Thank you very much for your time and your help!

-Ronie


Viewing all articles
Browse latest Browse all 213819

Trending Articles