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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
UditJ
Helper III
Helper III

Weekly sales for each month

I have a date field with two years data. On filter there will be monthyear selected and in the table and i want to show Week 1 , Week 2 , Week 3 , week 4 and week 5 Sales (If there are) as separate columns in the table. 

Week 1 Sales    Week 2 Sales    Week 3 Sales   Week 4 Sales                         ->      based on monthyear selection 

Any suggestions ?


1 ACCEPTED SOLUTION
v-stephen-msft
Community Support
Community Support

Hi @UditJ ,

 

Try using the matrix visual. And create a week number column using DAX. Below is a sample for reference.

Weeknum = WEEKNUM([Date],2)

vstephenmsft_0-1695887367782.png

You can download the attachment for more details.

 

 

Best Regards,

Stephen Tao

 

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

View solution in original post

2 REPLIES 2
riyasiak
Frequent Visitor

1. Under the Transform Data --> Create a Custom column in same table: WeekofMonth = Date.WeekOfMonth([Date]). Where [Date] is the same date field you have.

2. Create another Custom column Week number = "Week# " & WeekofMonth

3. Use Week number field also along with the monthyear selected.

 

After above steps, Check the visual and adjust per your needs

v-stephen-msft
Community Support
Community Support

Hi @UditJ ,

 

Try using the matrix visual. And create a week number column using DAX. Below is a sample for reference.

Weeknum = WEEKNUM([Date],2)

vstephenmsft_0-1695887367782.png

You can download the attachment for more details.

 

 

Best Regards,

Stephen Tao

 

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

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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