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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
marry
Helper I
Helper I

How to add new columns to transfer the new WW, Month & Year calculation?

Hi everyone,

 

Would like to seek for the help here, hope the expert could provide some solutions. Thnaks in advance.!!!

 

I Would like to move back 2 weeks( add 2 weeks) for the pariticular data (Index=Qty), and add some new columns to reflect the new WW, Month and Year.

I have another table in my Power BI is the calender raw data. Would like to refer to this calender table and reflect the result in the new added WW, Month, Year columns. 

 

Expected Result:

marry_0-1700282466974.png

 

This is another Calender Table in my Power BI: (Please check my PBI file)

marry_1-1700282495843.png

 

PBI file: (It seems I cannot insert the PBI file here directly, I tried to put it in google drive, please let me know whether can see it. )

 https://drive.google.com/file/d/1SslxfMwmjQ_Yl8np31CFKoQ8-pL-QIQy/view?usp=sharing 

 

Best regards,

Marry

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

6 REPLIES 6
Ahmedx
Super User
Super User

pls try again

Screenshot_1.pngScreenshot_2.pngScreenshot_3.pngScreenshot_4.png

Hi @Ahmedx ,

 

Thank you, I tried your solution into my PBI report.

But popped up below error message, could you advise how to address it? Thanks.

marry_1-1700314802710.png

 

marry_0-1700314755684.png

 

Rather, you have this because of two types of data.
Is your year column a number or text?
if it’s text, convert it to a number using VALUE.

var _year = VALUE('Table1'[Year ])

@Ahmedx ,

 

I appriciated your help!!!! Thanks for that.

It works well now. 🙂

AmiraBedh
Super User
Super User

What is your expected output ?


Proud to be a Power BI Super User !

Microsoft Community : https://docs.microsoft.com/en-us/users/AmiraBedhiafi
Linkedin : https://www.linkedin.com/in/amira-bedhiafi/
StackOverflow : https://stackoverflow.com/users/9517769/amira-bedhiafi
C-Sharp Corner : https://www.c-sharpcorner.com/members/amira-bedhiafi
Power BI Community :https://community.powerbi.com/t5/user/viewprofilepage/user-id/332696

 

Hi @AmiraBedh ,

 

Here is the expected output result. Would like to add three more columns to reflect the new Year, new Month, New WW calculation for particular data.

marry_0-1700308829686.png

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors