Mark New Added Items PQ or DAX

ahmedismailfourtex

Board Regular
Joined
Apr 28, 2015
Messages
124
Hello,
I had created an report to follow up my orders, this report take the data from database, i would like to mark the new orders witch added after last update by "New*" for example.
my data looks like:

Order ID

<tbody>
</tbody>
Order Date/Time

<tbody>
</tbody>
Customer

<tbody>
</tbody>
25

<tbody>
</tbody>
28/10/2017 09:46

<tbody>
</tbody>
X
26
13/10/2017 18:30

<tbody>
</tbody>
Y
27
13/09/2017 07:46

<tbody>
</tbody>
Z

<tbody>
</tbody>

Thanks in advance.:)
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
There is no concept for this in Power Query, as all data will be loaded on refresh.
You have to store the latest Order/Date/Time somewhere else (in your Excel worksheet or when using PBI, you can use R to export to csv or txt) and reference it in your filter for the next refresh.
 
Upvote 0
There is no concept for this in Power Query, as all data will be loaded on refresh.
You have to store the latest Order/Date/Time somewhere else (in your Excel worksheet or when using PBI, you can use R to export to csv or txt) and reference it in your filter for the next refresh.
Thank you Imke for your help,
I'm already loaded it as a table in the excel, what is the next step?
Appreciate your help.:)
 
Upvote 0
You import that back to PQ and create a query "LastValue" with List.Max(YourTable[Order Date/Time]) from it .

Then you add a column to your import-table with sth like this: if [Order Date/Time]<=LastValue then "Old" else "New"

This formula checks if the [Order Date/Time]-value is after the last import and adds "New" otherwise "Old".
 
Upvote 0

Forum statistics

Threads
1,216,178
Messages
6,129,327
Members
449,502
Latest member
TSH8125

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top