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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Anonymous
Not applicable

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
Anonymous
Not applicable

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 @Anonymous - 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Kudoed Authors