QoQ Comparison Not Working For Last Date

I’m comparing revenue for the current quarter to the previous quarter using the following measures.

Revenue LQ = CALCULATE([Revenue],DATEADD(‘Date’[DateKey],-1,QUARTER))

Cumulative Revenue LQ =
CALCULATE([Revenue LQ],
FILTER(ALLSELECTED(‘Date’),
‘Date’[Datekey]<=MAX(‘Date’[Datekey])))

Every value for the Cumulative Revenue LQ returns the proper value, with the exception of the last available date. For 6/21/2021 and prior, the corresponding value is correct. However, for 6/22/2021, the Cumulative Revenue LQ returns the value for 3/31/2021. I want this value to show the revenue as of 3/22/2021. How can I fix this? Suggestions always appreciated. Thanks!

Hi @acnyc88, we aim to consistently improve the topics being posted on the forum.

I noticed you didn’t provide a PBIX file. Providing one will help users and experts find a solution to your inquiry faster and better.

A perfect initial question includes all of the following:

  • A clear explanation of the problem you are experiencing
  • A mockup of the results you want to achieve
  • Your current work-in-progress PBIX file
  • Your underlying data file (to allow us to go into Power Query if necessary to transform your data and/or data model – often DAX questions really end up being data modeling solutions)

Check out this thread on Tools and Techniques for Providing PBIX Files with Your Forum Questions

Not completing your data may sometimes cause delay in getting an answer.

Hi @acnyc88, we’ve noticed that no response has been received from you since the 24th of June.

We are waiting for the masked demo pbix file, images of the entire scenario you are dealing with, screenshot of the data model, details of how you want to visualize a result, and any other supporting links and details.

In case there won’t be any activity on it in the next few days, we’ll be tagging this post as Solved.

We can mark as solved. PBIX is a live connection, so I’m unable to mask the data.

Thanks!

@acnyc88 , you don’t have to use your live data, you could simply mock up something using a practice dataset that demonstrates the problem. Info on the eDNA practice data toolset is in the post below.

https://forum.enterprisedna.co/t/tip-tools-and-techniques-for-providing-pbix-files-with-your-forum-questions/17763?u=heather

Hi @acnyc88, just a reminder that we’ll need your PBIX file so the users and experts can help you with your query.

Here are some videos that may help you masking sensitive data and create datasets and data models representative of your problem:

In case there won’t be any activity on it in the next few days, we’ll be tagging this post as Solved.