cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
papasfritas Frequent Visitor
Frequent Visitor

Month to Date AND Year on Year Dax In Direct Query

Hello

 

I am accessing data via direct query into a data cube.

 

There are two different date measures held in the data. The first is the date of sale. The second is the date that the service will be provided (i.e. including future dates). Both date measures have data held at individual date level, as well as month name and calendar year name.

 

I need to be able to display YOY revenue for a future service delivery date - say June, based on sales up until today and this date last year.

 

I've tried various different approaches including:

FILTER - works to create YOY only for service dates in the past, not future

SAMEPERIODLASTYEAR - I haven't been able to solve the contiguous date issue and have tried suggestions on this forum

 

Any help would be appreciated.

 

Thank You

3 REPLIES 3
v-jiascu-msft Super Contributor
Super Contributor

Re: Month to Date AND Year on Year Dax In Direct Query

Hi @papasfritas,

 

Do you have a Date table that contains future dates? If you'd like to analyze future data, there should be a future date. 

Since it's a live mode, I would suggest you create such a measure in the Cube.

 

 

Best Regards,

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
papasfritas Frequent Visitor
Frequent Visitor

Re: Month to Date AND Year on Year Dax In Direct Query

Thanks for the response.

 

Yes, there should be an option created in the cube, however I know it can't happen soon, so I'm looking for a solution in the interim.

 

thanks

v-jiascu-msft Super Contributor
Super Contributor

Re: Month to Date AND Year on Year Dax In Direct Query

Hi @papasfritas ,

 

I'm afraid there isn't much we can do with the Live connection. Please refer to the snapshot below.Month-to-Date-AND-Year-on-Year-Dax-In-Direct-Query

 

 

Best Regards,

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Back to School Contest

Back to School Contest

Engage and empower students with Power BI!

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Summit Australia 2019

Summit Australia 2019

Travel to Melbourne and network with thousands of peers!

PBI Community Highlights

PBI Community Highlights

Check out what's new in the Power BI Community!

Top Ideas
Users Online
Currently online: 27 members 1,032 guests
Please welcome our newest community members: