Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
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 product
Hope some one can share with me.
Paul
Solved! Go to Solution.
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.
Hi @admin11
Try this:
Measure= if(MAX([Last Sales])<>MAX([Last Purchase Date]),"new product")
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Thank you for sharing . i have try your propose code , it display Blank . Actual my condition , There is no sales for new product , Last Sales is 00/00/0000 , But There is Purchase date. As i indicate in Red below.
Last Sales = 00/00/0000 & Last Purchase Date not = 00/00/0000 is equal to new product
Hi,
Try this measure
=countrows(filter(values(Data[Model_invc]),[last sales]=blank()&&[last purchase date]<>blank()))
Hope this helps.
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.
You are welcome.
@admin11
Try this measure:
Measure = IF(
ISBLANK( MAX( [Last Sales] ) ) && NOT ISBLANK( MAX( [Last Purchase Date] ) ),
"New Product",
MAX( [Last Sales] )
)
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
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
Hi @admin11
Download file: https://gofile.io/d/oXT2Zu
Try this measure:
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!