TOTALYTD DAX query problems

robtop

New Member
Joined
Jan 20, 2011
Messages
20
Evening,

I've been having problems getting the TOTALYTD dax expression to work.

I'm using the following expression:

Gross Premium YTD=TOTALYTD(sum([Gross Premium]),time[Date])

According to everything I've read this should work but I'm getting this as the result:

Measure 1: (blank)

Theres no error message but its not summing anything up.

I have got another expression to calculate the premium last year which works without any problems if this helps:

Previous Years Premium:=CALCULATE([Total Gross Premium Ex IPT],DATEADD(time2[Date],-1,YEAR))

Any idea what I'm doing wrong as this is driving me a bit nuts now!

Any help much appreciated

Thanks

Rob
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Try this:

First create a measure for the column where the values are: Values_Corrected = Sum[Values]

Then use this measure

=calculate([Value_Corrected],datesbetween(Dates[Date],Year_Period[Selected_Year_Start_Date],Year_Period[Selected_Month_End_Date]))

Create two tables, once which has dates, and the other which has the Year, Month End date, Month Start date. Fiscal Period

Create these two measures in the year period table

Year_Period[Selected_Year_Start_Date] = lastdate(dateadd(Year_Period[Month_End_Date],MAX(Year_Period[Fiscal_Period])*-1,MONTH))
Year_Period[Selected_Month_End_Date]= lastdate(Year_Period[Month_End_Date]).

This should help you out.
 
Upvote 0
Thanks for the reply, it turns out the measure i was using originally does actually work when i summarise the data in a pivot table or Powerview it's just that for some reason it shows as (BLANK) in the Measures window.

Rob
 
Upvote 0

Forum statistics

Threads
1,223,931
Messages
6,175,465
Members
452,646
Latest member
tudou

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