business intelligence - Distributing cost to user date range in DAX -
in retail environment, have cost associated item/offer has start , end date. dividing cost total number of days, can per day cost of each product in each offer. how can total cost of each item on user entered date range? keep in mind date range can span multiple offers , multiple offers may overlap given day.
for example, have item abc. have offers july 2016 , august 2016, span first last day of each month. july 2016 has per day cost of $100 item abc , august 2016 has per day cost of $50 item abc. if user wants total offer cost july 25th 2016 through august 10th , 2016 item abc (7*$100 + 10*$50), dax calculation should use total cost of $1,200 time period?
Comments
Post a Comment