cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
luzsoulez
Frequent Visitor

rolling totals from secondary date

In my table I have 2 dates, start date which is related to the date table and end date which is not related to the date table

I made with no problems the rolling total for start date revenue, but I need to subtract the rolling total of the ends to get the net revenue for the period. I am having problems with the second part given that end date is not related to the date table.

 

Running actuals = var Maxdate= MAX(Date_Master[Date]) return CALCULATE([Sum Actuals],Date_Master[Date]<= Maxdate, ALL(Date_Master[Date]))- [Running actuals Ends]
Running actuals Ends = var Maxdate= MAX(Date_Master[Date]) return CALCULATE([Sum Actuals],'Consolidated Master'[Calc End Date]< Maxdate, ALL(Actuals[Calc End Date]))
3 REPLIES 3
luzsoulez
Frequent Visitor

I use the standard DAX date table produced by RADACAD and the relations ship is 'Date Master'[date] to 'mydata'[Calc Start date]

ItemEmployee NameOfficial Start DateCalc Start dateEnd DateStatusDivisionDelivery CenterTotal StartsCalc End Date
ActualsRandom116-Jan-2316-Jan-23 ActiveDiv 1country 1116-Jan-24
ActualsRandom13-Apr-233-Apr-23 ActiveDiv 2country 211-Aug-23
ActualsRandom14-Aug-224-Aug-22 ActiveDiv 1country 3123-Apr-23
ActualsRandom17-Nov-227-Nov-22 ActiveDiv 2country 1131-Jul-23
ActualsRandom17-Feb-227-Feb-22 ActiveDiv 1country 2129-Dec-23
ActualsRandom127-Dec-2227-Dec-22 ActiveDiv 2country 3127-Dec-23
ActualsRandom116-Jan-2316-Jan-23 ActiveDiv 1country 1116-Jan-24
ActualsRandom116-Jan-2316-Jan-23 ActiveDiv 2country 2116-Jan-24
ActualsRandom14-Apr-234-Apr-23 ActiveDiv 1country 3130-Sep-23
ActualsRandom17-Sep-217-Sep-21 ActiveDiv 2country 112-Oct-23
ActualsRandom127-Dec-2227-Dec-22 ActiveDiv 1country 2127-Dec-23
ActualsRandom127-Dec-2227-Dec-22 ActiveDiv 2country 3127-Dec-23
ActualsRandom114-Nov-2214-Nov-22 ActiveDiv 1country 1131-Jul-23
ActualsRandom116-Jan-2316-Jan-23 ActiveDiv 2country 2116-Jan-24
Target  1-Dec-2331-Dec-23 Div 1country 341-Jan-24
Target  1-Nov-2331-Dec-23 Div 2country 141-Jan-24
Target  1-Oct-2331-Dec-23 Div 1country 241-Jan-24
Target  1-Sep-2331-Dec-23 Div 2country 341-Jan-24
Target  1-Aug-2331-Dec-23 Div 1country 131-Jan-24
Target  1-Jul-2331-Dec-23 Div 2country 221-Jan-24
Target  1-Jun-2331-Dec-23 Div 1country 321-Jan-24
Target  1-May-2331-Dec-23 Div 2country 111-Jan-24
Target  1-Apr-2331-Dec-23 Div 1country 211-Jan-24
Target  1-Dec-2331-Dec-23 Div 2country 341-Jan-24
Target  1-Nov-2331-Dec-23 Div 1country 141-Jan-24
Target  1-Oct-2331-Dec-23 Div 2country 241-Jan-24
Target  1-Sep-2331-Dec-23 Div 1country 341-Jan-24
Target  1-Aug-2331-Dec-23 Div 2country 131-Jan-24
Target  1-Jul-2331-Dec-23 Div 1country 221-Jan-24
Target  1-Jun-2331-Dec-23 Div 2country 321-Jan-24
Target  1-May-2331-Dec-23 Div 1country 111-Jan-24
eliasayyy
Super User
Super User

can you please provide sample data to better understand

do you have calendar table? and what is master date? and cant you copy the table instead of picture to insert it directly to powerbi ?

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors