Dax function Revenue from a start date

HFish

New Member
Joined
Jul 7, 2016
Messages
4
Hi,

Looking to pull out revenue from a data table that is on or after a start date from my customer table. I am able to pull out the customer names no problem but only seem to be able to get total revenue and not from this date on wards (Each customer has a different date unfortunately).

I have a calendar table too and attempted these functions:

if(Data_Table[date]>=Customer_Table[Start date],Data_Table[Total Revenue]," ")
CALCULATE([Total Revenue], Data_Table[date]>=Customer_Table[Start date]

Any help would be great thanks!
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
You haven't provided much information about how your model is setup or how you want the final table to look, but assuming you have the Calendar_Table related to Data_Table correctly and have the Customer_Table on the rows, then although i have not tried it this measure should do what you want:

Code:
Total Revenue since start date := [COLOR=#333333]CALCULATE([Total Revenue], FILTER ( ALL ( Calendar_Table), Calendar_Table[date]>= MAX ( Customer_Table[Start date] ) ) ) [/COLOR]

where:

Code:
Total Revenue := SUM ( Data_Table[Revenue] )

This is Total Revenue per customer after their respective start date. But i feel like i am missing either how you want it to look or the calculation you are looking for because realistically you don't even need to test the date in my scenario shown above...
 
Upvote 0

Forum statistics

Threads
1,216,101
Messages
6,128,841
Members
449,471
Latest member
lachbee

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