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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
aesantos98
New Member

Comparison Actual Revenue vs. Past Revenue

Hi there!

 

I generated a comparison between the actual revenue and past revenue of the same month, but 1yr before and, though the total is showing, the monthly analysis is not. Does anyone have an idea what i'm doing wrong?

 

aesantos98_0-1602179410652.png

 

1 ACCEPTED SOLUTION
edhans
Super User
Super User

Did you mark your date table as a date table? I can tell by this icon below that you still have automatic date time intelligence on. That should be off in the options, and right-click on your date table and "Mark as Date Table."

edhans_0-1602180694282.png

Then do you have your date table related to the right date in your sales table? You can see other requirements for the DATEADD() function here.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

View solution in original post

3 REPLIES 3
edhans
Super User
Super User

Did you mark your date table as a date table? I can tell by this icon below that you still have automatic date time intelligence on. That should be off in the options, and right-click on your date table and "Mark as Date Table."

edhans_0-1602180694282.png

Then do you have your date table related to the right date in your sales table? You can see other requirements for the DATEADD() function here.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Hi!

 

Tks for the quick help! Well, gotta say that your suggestion itself didn't really change the result. On the other hand though, you brough up the Close Date field and it actually helped me review my Primary and Foreign Key relations, and with that (and selecting the right columns) I got the numbers right! So thanks for, in a way, leading the solution 😃

Great @aesantos98 - it is critical the relationships are right!



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.