Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi Friends,
I am having below excel data,
How can we calculate difference between total sales values with regrads to current date and previous last date in table.
@Neal369 , Select the distinct date in a new table and add rank column on date
Dates = distinct(Table[reportingDate])
Add Rank, column
rank = rankx(Dates , Dates[reportingDate] ,,asc,dense)
join reporting date of both tables
Then use measures like
This date= CALCULATE(sum('Table'[sales]), FILTER(ALL('Dates'),'Dates'[rank ]=max('Dates'[rank])))
Last date= CALCULATE(sum('Table'[sales]), FILTER(ALL('Dates'),'Dates'[rank ]=max('Dates'[rank])-1))
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.