Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
papasfritas
New Member

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
Employee
Employee

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.

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

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.