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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
netanel
Post Prodigy
Post Prodigy

A simple formula but the data structure is different

Hello everyone
I have this formula: 

Diff$ Budget = [MTD Sales] -[MTD Sales for Budget 2021]
Seemingly it is simple but the numbers are incorrect
 
It works for me when I do a month less a month earlier
Here:
Diff $ = 'Sheet1'[MTD Sales]-[last MTD Sales]
 
Could it be that in the budget it does not work for me because of the structure of the data?
Attaches a photo
 
1.JPG







Did I answer your question?
Mark my post as a solution!
Appreciate your Kudos!

Connect on Linkedin
linkedin.com/in/netanel-shriki
1 ACCEPTED SOLUTION

Hi @netanel 

 

Please download this file:

https://gofile.io/d/X9hGid

 

Let me know if you have any questions.

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.

Appreciate your Kudos!!

 

View solution in original post

6 REPLIES 6
VahidDM
Super User
Super User

Hi @netanel 

 

Do you have any columns with dates in your table?

If yes, try using TOTALMTD to find MTD and then add Date Source="Budget 2021" to the filter section to find the "MTD Sales for Budget 2021".

Something like this:

 Diff$ Budget = TOTALMTD(SUM([Net USD]),[Date Column])-TOTALMTD(SUM([Net USD]),[Date Column],[Date Surce]="Budget 2021")


If this post helps, please consider accepting it as the solution to help the other members find it more quickly.

Appreciate your Kudos!!

 

In general I think this is really the way to a solution for me
(I have a DIM table of dates)
I try according to what you have written and something falls
This is the formula I write
 
Diff$ Budget = TOTALMTD(SUM([Net USD]),'Revenues DB'[Date])-TOTALMTD(SUM([Net USD]),'Date'[Date],'Revenues DB'[Date]="Budget 2021")
 
 
 







Did I answer your question?
Mark my post as a solution!
Appreciate your Kudos!

Connect on Linkedin
linkedin.com/in/netanel-shriki

Hi @netanel 

 

Can you please share a sample of your data and connection between tables? [after removing sensitive data]

More Important, can you please add more details on how you want to show the result?is that just a number or do you want to show that in a table?

 

Appreciate your Kudos!!

 

attached
PBIX
And my excel data

 

https://1drv.ms/f/s!AonyYI-TdspHgUgReR5uqvnKLTCF








Did I answer your question?
Mark my post as a solution!
Appreciate your Kudos!

Connect on Linkedin
linkedin.com/in/netanel-shriki

Hi @netanel 

 

Please download this file:

https://gofile.io/d/X9hGid

 

Let me know if you have any questions.

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.

Appreciate your Kudos!!

 

It works great!

Thank you!








Did I answer your question?
Mark my post as a solution!
Appreciate your Kudos!

Connect on Linkedin
linkedin.com/in/netanel-shriki

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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