Forum Discussion
admin11
Memorable Member
4 years agoHow to create expression for detect new product ?
Hi All I got 2 fields. - Last Sales - Last Purchase Date May i know how to write the expression , when :- Last Sales = 00/00/0000 & Last Purchase Date not = 00/00/0000 is equal to new...
- 4 years ago
Hi,
This calculated column formula works
New Product_final 1 = IF(and(INVC[Last Sales]=blank(),invc[Last Purchase Date]<>blank()),"New product","Existing product")Hope this helps.
admin11
Memorable Member
4 years ago
I have try using column , it got error , when i try as measure , it does not able filter.
My PBI file :-
https://www.dropbox.com/s/x3w1smk5p2atfxm/PBT_V2021_118.pbix?dl=0
Paul
VahidDM
Super User
4 years agoHi admin11
Download file: https://gofile.io/d/oXT2Zu
Try this measure:
New Product =
if(max(INVC[Last Sales])=blank()&&max(INVC[Last Purchase Date])<>blank(),"New Product",max(INVC[Last Sales]))
output:
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!