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
learner03
Post Partisan
Post Partisan

Past rolling 6 months starting from current month in Table

How can I get below output-

Summarising at customer level and showing 6 months quantity sold startig from current month.

Item History table     
       
Item CustomerQuantityDate   
ACus142/05/2021   
ACus267/07/2021   
bCus133/06/2021   
bCus354/05/2021   
bCus4719/04/2021   
cCus2922/09/2021   
cCus111/03/2021   
cCus433/06/2021   
DCus3417/04/2021   
       
       
Output( Starting Current month)   
Months-->Sep-21Aug-21Jul-21Jun-21May-21Apr-21
Customer      
Cus1      
Cus2      
Cus3      
Cus4      
       
1 ACCEPTED SOLUTION

@Ashish_Mathur How can  I get this in Power BI desktop?

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

You may refer to my solution here - Flex a Pivot Table to show data for x months ended a certain user defined month.

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

@Ashish_Mathur How can  I get this in Power BI desktop?

Keep the Excel file closed.  Open PowerBI Desktop and go to File > Import > Power Query, PowerPivot, Power View.

Now build your visual.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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.