Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hi All,
Help me in finding out the difference value. Report source is the Excel sheet having Current day data in one tab & Previous day data in another tab. Scenario is i have to findout the difference between the current day - previous day. The is no relationship between these two tabs.
Current Day Sheet Data:
Current Day Country Price
3/7/2017 US 100
Previous Day Sheet Data:
Previous Day Country Price
2/7/2017 US 25
I want the difference between these two even though not having the relationship between these tabs.
Thanks
Kavya
Solved! Go to Solution.
Hi @kavya,
I am getting error when i used the formula. Below is the error
The table of multiple values was supplied where a single value expected.
In your PreviousDayTable, does [Price] have unique values per date per Country? If not, you can do a SUMMARIZE (new a calculated table) first, then, try Zubair_Muhammad's formula.
New Table = SUMMARIZE ( PreviousDayTable, PreviousDayTable[Previous Day], PreviousDayTable[Country], "Price", SUM ( PreviousDayTable[Price] ) )
Refer to this 'New Table' rather than PreviousDayTable when creating calculated column.
Difference = CurrentDayTable[Price] - LOOKUPVALUE ( 'New Table'[Price], 'New Table'[Country], CurrentDayTable[Country], 'New Table'[Previous Day], CurrentDayTable[Current Day] - 1 )
Regards,
Yuliana Gu
Hi Kavya,
Lots of ways to do this... I would create a calendar table (date dimension) with two columns - date and previous date (current date - 1 day) then create a relationship from the 'current sheet'[current date] to the calendar[date] and another relationship from the 'previous day'[previous date] to the calendar[previous date] column...
Then when you select the date in the calendar it will filter the current and previous date sheets correctly.
try this 🙂
Try this calculated column in CurrentDay Table
Difference = CurrentDayTable[Price] - LOOKUPVALUE ( PreviousDayTable[Price], PreviousDayTable[Country], CurrentDayTable[Country], PreviousDayTable[Previous Day], CurrentDayTable[Current Day] - 1 )
Getting the exact value of the current day price not the difference.
Hi @kavya,
If you have two data set for the same, then you can follow the steps to achive it.
And then you can get both the current date and the previous date result in the same Row and you can easily subtract the values.
Hi Muhammad,
I am getting error when i used the formula. Below is the error
The table of multiple values was supplied where a single value expected.
Thanks
Kavya
Hi @kavya,
I am getting error when i used the formula. Below is the error
The table of multiple values was supplied where a single value expected.
In your PreviousDayTable, does [Price] have unique values per date per Country? If not, you can do a SUMMARIZE (new a calculated table) first, then, try Zubair_Muhammad's formula.
New Table = SUMMARIZE ( PreviousDayTable, PreviousDayTable[Previous Day], PreviousDayTable[Country], "Price", SUM ( PreviousDayTable[Price] ) )
Refer to this 'New Table' rather than PreviousDayTable when creating calculated column.
Difference = CurrentDayTable[Price] - LOOKUPVALUE ( 'New Table'[Price], 'New Table'[Country], CurrentDayTable[Country], 'New Table'[Previous Day], CurrentDayTable[Current Day] - 1 )
Regards,
Yuliana Gu
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.