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

Creating a column using different clauses and like statements

$
0
0

Hi everyone,

We are in the process of moving some dashboards from QlikView to PBI.  Right now we are trying to recreate this field / column in PBI.

 

Here is the load statement in Qlik:

 

first_res_date = (select min(entry_date)

     from "whd_prod".dbo."HISTORY_ENTRY" he

        where he.JOB_TICKET_ID = jt.JOB_TICKET_ID

        and (he.ENTRY_TEXT like '%to Resolved'

         or  he.ENTRY_TEXT like '%to Closed'))

 

What this is is creating a first resolution date.  Whether is it put in resolved or closed first.  Using this field helps with math later on in determining timing to resolved/closed from reported dated.

 

So far I have this in PBI:

Column = MIN(HISTORY_ENTRY[ENTRY_DATE].[Date])
 
I just don't understand the 'where" and 'and' and 'or' statements.  They don't pop up when entering them.
 
Any assistance or point me in the right direction is much appreciated.
Thanks!

Viewing all articles
Browse latest Browse all 218244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>