Forum Discussion
Retrieve latest date
- Anonymous8 years ago
Hi jaafer,
You can simply use summarize function to create a table to store summarized 'item no' and max 'post date'.
Table = SUMMARIZE ( FILTER ( 'Sample', [entry type] = "sale" ), [item no], "MaxDate", MAX ( 'Sample'[posting date] ) )Regards,
Xiaoxin Sheng
- Anonymous8 years ago
HI jaafer,
Nope, it not in query editor, it is dax formula.
You can navigate to modify tab and choose new table, then input these to formula panel.
Regards,
Xiaoxin Sheng
i want to retrieve the latest date from "posting date" field and from "entry type" field equals to "sale". Thanks.
Hi jaafer,
You can simply use summarize function to create a table to store summarized 'item no' and max 'post date'.
Table =
SUMMARIZE (
FILTER ( 'Sample', [entry type] = "sale" ),
[item no],
"MaxDate", MAX ( 'Sample'[posting date] )
)
Regards,
Xiaoxin Sheng
- jaafer8 years agoFrequent Visitor
Thank you very much for reply. Can you please tell me where i will apply this code. Is it in query editor. Please I am very new to Power Bi
- Anonymous8 years agoNot applicable
HI jaafer,
Nope, it not in query editor, it is dax formula.
You can navigate to modify tab and choose new table, then input these to formula panel.
Regards,
Xiaoxin Sheng
- jaafer8 years agoFrequent Visitor
Anonymous ok I got it.. how to create a table. Actually i need to add a new column in table "item master" with a field " last sale date" Can u please help
- jaafer8 years agoFrequent Visitor
Thank you very much brother, it worked well... :smileyhappy: