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

Calculate Period of Date field that is in between two columns of date/time fields

$
0
0

Hello! 

 

I table that contains a Datetime field "Quote Sent Date" which includes ~30000 rows. Some of these records and timestamps may show up more than once (our company may send out some quotes at the same time). 

 

Query1: 

Quote ID             Quote Sent Date                                Period?

xxxx-xxxxxx          10/2/2016 5:10:00 PM                        

 

What I need to do within PowerBi Desktop, is determine which Fiscal Period that that quote was sent to our customer. It is pretty simple to do in Excel with a VLookup, but, I cannot figure out how to do this in PowerBi. 

 

I have a separate table which includes FY15, FY16, and FY17 date/time fields to relate the beginning and ends of the periods. 

 

Sheet1

Period                       Start Date                                            Finish Date 

FY16 P01                   10/1/2015 12:00:00 AM                       10/25/2015 11:59:59 PM 

 

Any ideas or suggestions? 

 

Thanks so much! 


Viewing all articles
Browse latest Browse all 213819

Trending Articles