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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Combine Multiple Months data in Power Bi

Hi Team, I have data for years on months wise so how to combine years wise data in power BI. Please find below 2 screen shots from Power BI and Excel

Narayana7481_0-1638781410552.png

 

Excel,

Narayana7481_1-1638781445062.png

 

 

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

Hi @Anonymous ,

According to your description, here's my solution.

1.Select the columns from 2017/1/1 to 2017/12/1, the click unpivot columns.

vkalyjmsft_0-1639043965385.png

vkalyjmsft_3-1639044016559.png

2.Get three columns.

vkalyjmsft_2-1639043965389.png

3.Created a year column.

Year = YEAR('Table'[Date])
4.Create a matrix visual, put Sales Person ID in rows, put Date and Year in columns and Value in values, then turn on the drill button.
vkalyjmsft_4-1639044957962.png

5.Click drill down, then get the total value by year.

vkalyjmsft_5-1639045138673.png

I attach my sample below for reference.

Best Regards,
Community Support Team _ kalyj

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

3 REPLIES 3
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

According to your description, here's my solution.

1.Select the columns from 2017/1/1 to 2017/12/1, the click unpivot columns.

vkalyjmsft_0-1639043965385.png

vkalyjmsft_3-1639044016559.png

2.Get three columns.

vkalyjmsft_2-1639043965389.png

3.Created a year column.

Year = YEAR('Table'[Date])
4.Create a matrix visual, put Sales Person ID in rows, put Date and Year in columns and Value in values, then turn on the drill button.
vkalyjmsft_4-1639044957962.png

5.Click drill down, then get the total value by year.

vkalyjmsft_5-1639045138673.png

I attach my sample below for reference.

Best Regards,
Community Support Team _ kalyj

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

 

amitchandak
Super User
Super User

@Anonymous , In Power bi, either use the date hierarchy, option after dragging a date in visual. Right click date hierarchy .

 

Or in your table or date table create month year and use that

 

Month Year = FORMAT([Date],"mmm-yyyy")
Month Year sort = FORMAT([Date],"yyyymm")

Anonymous
Not applicable

@amitchandak , i tried this way but it's not merging all the rows

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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