DatesYTD returns Blank?

m_aatif

Board Regular
Joined
Apr 18, 2013
Messages
56
In powerPivot Window, Dax measures , following measure returns blank. I have been trying to do it for a long time but no succes.

I have contagious date table.
It has been marked as "date"
I have set relationship of many to one.


YTD:=CALCULATE([TotalSales],DATESYTD(Calendar[Date]))

Please help
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
This measure only returns a value when it is used in a Pivot Table.
Insert a new Pivot table in Excel connected to the data model
set up the pivot table so that you have Calendar Year on Rows.
Place Calendar Month Number beneath Year on rows.
Put Total Sales in the values section
put your YTD measure in the values section.

Then you should see it work.

I recommend you never write measures in the Power Pivot window when you are learning.
Always set up a pivot table with a relevant context for the task at hand (in this case you need to see some sort of time period of sales to check it works)
When you are an expert, then it is fine to write them how you like. When you are learning, I suggest you do it this way.

Matt
 
Upvote 0

Forum statistics

Threads
1,224,154
Messages
6,176,731
Members
452,740
Latest member
MrCY

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