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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
tangutoori
Helper III
Helper III

Show previous date data and new changes from table 2

Dear All,

 

Am facing the below scenario.

i need to show the O/P as below.

 

 

NameQtyDate Hints for solution work around
a106-Jan-23  
b206-Jan-23  
c306-Jan-23  
     
NameQtyDate  
a210-Jan-23 Qty changed from 1 to 2
e310-Jan-23 New name added
c310-Jan-23 No qty changed, remove from O/P table
     
O/P    
NameQtyDate  
a106-Jan-23  
b206-Jan-23  
c306-Jan-23  
a210-Jan-23  
e310-Jan-23  

 

2 REPLIES 2
tangutoori
Helper III
Helper III

Hi Amit,

 

you have mistaken, i need 3rd table as O/P not a column. 

 

NameQtyDate
a106-Jan-23
b206-Jan-23
c306-Jan-23
   
NameQtyDate
a210-Jan-23
e310-Jan-23
c310-Jan-23
   
O/P  
NameQtyDate
a106-Jan-23
b206-Jan-23
c306-Jan-23
a210-Jan-23
e310-Jan-23
amitchandak
Super User
Super User

@tangutoori , Try a new column like

 

New column =
var _date = maxx(filter(Table, Table[Date] < earlier(Table[Date]) ), Table[date])
var _qty = maxx(filter(Table, Table[Date] =_date && [Name] = Earlier([Name]) ), Table[Qty])
return
Switch( true() ,
isblank( _date) , blank(),
isblank(_qty), "New",
[Qty] <> _qty , "Qty Changed From " & _qty & " to " & [Qty],
"Same"
)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors