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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
Ire_2022
New Member

MEASURE PROBLEM

Good Afternoon

Im trying to calculate Budget figure year to date, the budgets figures are in a different table to sales. The Budget table has 3 columns for date- year, ,month, week, whereas the date Value is a complete date e.g. day, month, year

Ire_2022_0-1651585479192.png

Could anyone help, please?

thanks

Ire_2022

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Ire_2022 , Using week and year create a date and use that to join to common date table

 

Date from week =

var _year = date([Year],1,1)

var _wyear = _year +-1*WEEKDAY(_year ,2)+1

return

_year + [Week]*7

 

Join this date with the date of the date table, also join the date table with the sales table. IF needed split the data into days

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Ire_2022,

Did the above suggestion help with your scenario? if that is the case, you can consider Kudo or accept the helpful suggestions to help others who faced similar requirements.

If these also don't help, please share more detailed information to help us clarify your scenario to test.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

amitchandak
Super User
Super User

@Ire_2022 , Using week and year create a date and use that to join to common date table

 

Date from week =

var _year = date([Year],1,1)

var _wyear = _year +-1*WEEKDAY(_year ,2)+1

return

_year + [Week]*7

 

Join this date with the date of the date table, also join the date table with the sales table. IF needed split the data into days

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.