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

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

Reply
chinma
Frequent Visitor

How to generate Sales Data matrix for DealerType on Month on Monthwise

Team, I have data in the attached image format 

chinma_0-1718707940907.png

and I need to generate Rolling 12 month matrix for DealerType based on the year & month selected by user.  Sample output is in the attached image:

chinma_1-1718708054154.png

Please share a sample working solution. 

Greatly appriciate your assistance.

Thank you.

2 REPLIES 2
Anonymous
Not applicable

Hi,@chinma I am glad to help you.
Hello,@VijayP ,thanks for your concern about this issue.

Your answer is excellent!
Has your problem been solved? If your problem has been solved, please mark the suggestion to solve the problem as a solution!

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.

Best Regards,

Carson Jian,

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

VijayP
Super User
Super User

@chinma 

First thing you must have a date column
So Create a concatenated column using all the date parts in your data
Then you must have a date dimension table and connect that table to  your data table
Then you must use this DAX 
Calculate(sum(valuecolumn),

filter(allselected(datedimension),Datedimension[Date]<=max(Datedimension[Date]))

and you will get the required rolling 12 months 




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.