Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Find Max Date

I have a table that looks like:

ConsolOrderNoCustomerNameSalesOrderNumberMaterialNumberConfirmDateSales
6478842ABC647884278301-0024507/5/201256.16
6478842ABC649487614201-0001657/9/2012403.86
6478842ABC649677370661-0162017/5/20125335.4
6478842ABC649677370661-0164017/5/20128004.15
6478842ABC649791471610-0264607/10/20121903.98
6484913DEF648261771680-0156707/12/201244.64
6484913DEF648491370020-0104187/10/201229.52
6484913DEF648491370020-0090407/9/201218.72
6484913DEF648491370261-0012997/12/2012222.12
6484913DEF649289672000-0184007/25/201231.68

I want to highlight (or make bold) the oldest date for each ConsolOrderDate. So for CosolOrderNo 6478842 I want the date 7/10/2012 in bold and or order 6484913 I want the date 7/25/2012 in bold.

How can I so this?

Thanks,

Stephen

1 Solution

Accepted Solutions
nagaiank
Specialist III
Specialist III

Attached qvw file has one solution.

View solution in original post

11 Replies
nagaiank
Specialist III
Specialist III

Attached qvw file has one solution.

Not applicable
Author

Krish,

I have your example. How did you get it to be bold?

Stephen

Not applicable
Author

Krish,

I have your example. How did you get it to be bold?

Stephen

nagaiank
Specialist III
Specialist III

In script, I get the latest ConfirmDate. In the table chart, I define the text format to bold when the ConfirmDate equals the latest date.

Not applicable
Author

You can also use an expression like this in the chart, Properties--> Expressions --> TextFormat :

f(ConfirmDate=max(total <ConsolOrderNo> ConfirmDate),'<B>')

Hope it helps

Not applicable
Author

Next Problem.

In my data above take ConsolOrderNo 6478842 and make the ConfirmDate 7/10.2012 for all MaterialNumber. Meaning that all Sales Orders and their detail lines for Consolidated Order number  6478842 has the same confirmed date. Because they all have the same confirm date, I do not want to show ConsolOrderNo 6478842 in a straight or pivot table. But I do want to show ConsolOrderNo 6484913 because all of the Confirm Dates are not the same.

In other words, I only what to show the user ConsolOrdersNo's where the dates are not all the same

How would I do this?

Thanks,

Stephen

nagaiank
Specialist III
Specialist III

I do not quite understand what you want to do.

For the data in the original post, if you indicate the result expected, we may be able to arrive at a procedure to get there.

Not applicable
Author

See attached, it should explain what I am looking for.

Thanks,

Stephen

Not applicable
Author

Using Krish method I created a selection criterial using:

 

Data3:

LOAD ConsolOrderNo,

if(Count(distinct `REQUEST_SHIP_DATE`)=1,'All Same Date','Multiple Dates') as CountDate

Resident OpenOrders Group By ConsolOrderNo;

Left Join (OpenOrders) LOAD * Resident Data3;

DROP Table Data3;

Stephen