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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
slavisha84
Helper I
Helper I

How to create new column that summarize data by week and by Online or Store Channel?

Hello, 

I have WTDdata table that contains ThisYearRevenue and LastYearRevenue summarized by week:

slavisha84_0-1620343376275.png

 

I need to create 4 more columns LastYearOnlineRevenue, LastYearStoreRevenue, ThisYearOnlineRevenue, and ThisYearStoreRevenue from another  table (RevenueByDate) that looks like this:

 

Capture.PNG

 

FW column in this table means Fiscal Week.

If you can help me with at least one column, I am assuming the logic will be the same for the other 3.
Thank you in advance. 

 

 
 

Here is the location for sample data and .pbix file:
https://1drv.ms/u/s!AhhZq1add5YwjYIvuASi76lCL3R1eA?e=C7ObDZ

 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi, @slavisha84 

 

I do not know well about your whole data model and your case, but I suggest creating measures.

 

However, as your request is having new columns, please check the below picture and the sample pbix file's link down below whether it is what you are looking for.

 

Picture2.png

 

https://www.dropbox.com/s/8kjh23u5hro6nt7/Samples.pbix?dl=0 

 

Hi, My name is Jihwan Kim.

 

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

 

Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

3 REPLIES 3
Jihwan_Kim
Super User
Super User

Hi, @slavisha84 

 

I do not know well about your whole data model and your case, but I suggest creating measures.

 

However, as your request is having new columns, please check the below picture and the sample pbix file's link down below whether it is what you are looking for.

 

Picture2.png

 

https://www.dropbox.com/s/8kjh23u5hro6nt7/Samples.pbix?dl=0 

 

Hi, My name is Jihwan Kim.

 

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

 

Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

@Jihwan_Kim 
This is exactly what I needed. Thank you so much, brother. 

Hi, @slavisha84 

Glad to hear that you have solved your problem with the reply of Jihwan Kim, would you like to mark his reply as a solution so that others can learn from it too?

Thanks in advance!😁

How to Get Your Question Answered Quickly 

 

Best Regards,

Community Support Team _Robert Qin

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

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.