Extract sales value from two rows and calculate difference?

johnconnor

New Member
Joined
Oct 31, 2014
Messages
11
Hey guys, I have column A with dates and column B with sales data. I want to find the sales data for the same day/month (assume I am working on two different cases with different levels of granularity) and then calculate the difference between the two.

May I know how do I achieve this? DAX newbie here, so any help would be a lifesaver. Thank you!
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Sorry, having a hard time understanding the question. Can you drop a bit of sample data?
 
Upvote 0
Sorry, having a hard time understanding the question. Can you drop a bit of sample data?

If I have a date column and a sales data column beside it, how do I calculate the difference in two sales data of the same month but from different years?
 
Upvote 0
I think that if you are planning to work only with months and years, that it would be interesting to create 2 separate columns for Year and Month.
 
Upvote 0

Forum statistics

Threads
1,224,045
Messages
6,176,067
Members
452,703
Latest member
kinnowboxes

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top