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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
patroriki
Frequent Visitor

Store Type Analysis

Dear All,

 

need your help for Store type analyisi current year over last year samperiod. 

 

how to make in power bi desktop with dynamic pivot table.

 

need summary matrix :

Filter 1Month  
Filter 2Brand  
MatrixRemarksFY 2022-23FY 2023-24
Total Store CountTotal count of Store  
Total ValueTotal Sale Value  
Repeat Store CountPresent in Current Year and Sameperiod Last Year  
Repeat Store Value   
Lapser Store CountPresent in sameperiod Last Year but not present in Current Year  
Lapser Store Value   
New Store CountPresent in Current Year but Not present in sameperiod Last Year  
New Store Value  

 

 

Data is Below.....

Table1

Retailer UIDDateBRANDValue in Lakh
BR-000000201-08-2022ABC0.06
BR-000000801-08-2022ABC0.03
BR-000002801-08-2022ABC0.30
BR-000003001-08-2022ABC0.11
BR-000003101-08-2022ABC0.26
BR-000003201-08-2022ABC0.37
BR-000003801-08-2022XYZ0.13
BR-000004001-08-2022XYZ0.08
BR-000004501-08-2022XYZ0.00
BR-000004801-08-2022XYZ0.01
BR-000005401-08-2022XYZ0.00
BR-000005501-08-2022XYZ0.00
BR-000005901-08-2022XYZ0.00
BR-000006201-08-2022XYZ0.00
BR-000003101-08-2023ABC0.26
BR-000003201-08-2023ABC0.37
BR-000003801-08-2023XYZ0.13
BR-000004001-08-2023XYZ0.08
BR-000004501-08-2023XYZ0.00
BR-000004001-08-2023WBC0.08
BR-000004501-08-2023WBC0.00
BR-000005501-08-2023WBC0.00
BR-000004201-08-2023WBC0.08
BR-000004301-08-2023WBC0.00
BR-000001201-08-2023WBC0.01
BR-000001201-08-2023WBD0.00
BR-000003501-08-2023WBC0.00
BR-000000201-07-2022ABC0.06
BR-000000801-07-2022ABC0.03
BR-000002801-07-2022ABC0.30
BR-000003001-07-2022ABC0.11
BR-000003101-07-2022ABC0.26
BR-000003201-07-2022ABC0.37
BR-000003801-07-2022XYZ0.13
BR-000004001-07-2022XYZ0.08
BR-000004501-07-2022XYZ0.00
BR-000004801-07-2022XYZ0.01
BR-000005401-07-2022XYZ0.00
BR-000005501-07-2022XYZ0.00
BR-000005901-07-2022XYZ0.00
BR-000006201-07-2022XYZ0.00
BR-000003101-07-2022ABC0.26
BR-000003201-07-2022ABC0.37
BR-000003801-07-2022XYZ0.13
BR-000004001-07-2022XYZ0.08
BR-000004501-07-2022XYZ0.00
BR-000004001-07-2022WBC0.08
BR-000004501-07-2022WBC0.00
BR-000005501-07-2022WBC0.00
BR-000004201-07-2022WBC0.08
BR-000004301-07-2022WBC0.00
BR-000001201-07-2022WBC0.01
BR-000001201-07-2022WBD0.00
BR-000003501-07-2022WBC0.00
BR-000000201-07-2023ABC0.06
BR-000000801-07-2023ABC0.03
BR-000002801-07-2023ABC0.30
BR-000003001-07-2023ABC0.11
BR-000003101-07-2023ABC0.26
BR-000003201-07-2023ABC0.37
BR-000003801-07-2023XYZ0.13
BR-000004001-07-2023XYZ0.08
BR-000004501-07-2023XYZ0.00
BR-000004801-07-2023XYZ0.01
BR-000005401-07-2023XYZ0.00
BR-000005501-07-2023XYZ0.00
BR-000005901-07-2023XYZ0.00
BR-000006201-07-2023XYZ0.00
BR-000003101-07-2023ABC0.26
BR-000003201-07-2023ABC0.37
BR-000003801-07-2023XYZ0.13
BR-000004001-07-2023XYZ0.08
BR-000004501-07-2023XYZ0.00
BR-000004001-07-2023WBC0.08
BR-000004501-07-2023WBC0.00
BR-000005501-07-2023WBC0.00
BR-000004201-07-2023WBC0.08
BR-000004301-07-2023WBC0.00
BR-000001201-07-2023WBC0.01
BR-000001201-07-2023WBD0.00
BR-000003501-07-2023WBC0.00

 

 

Table 2 Calendar

DateFY YearMonth
01-08-20222022-23Aug
01-08-20232023-24Aug
01-07-20222022-23Jul
01-07-20232023-24Jul

 

please need 

2 REPLIES 2
technolog
Super User
Super User

I hope this message finds you well. I've noticed that this solution remain unresolved. If any of you have managed to find a resolution to the issue, I kindly request that you share your solution for the benefit of the entire community. Alternatively, if you're still facing challenges, please do let us know as well.

Your insights and updates will greatly assist others who might be encountering the same challenge.

Sahir_Maharaj
Super User
Super User

Hello @patroriki,

 

Can you please try:

 

1. Create Calculated Columns:

 

FY Year = RELATED('Table2 Calendar'[FY Year])
Month = RELATED('Table2 Calendar'[Month])

 

2. Create Additional Calculated Columns

 

MaturityBucketName =
SWITCH(
   TRUE(),
   [TimeToMaturity] < 2.25, "Under 2.25 years to maturity",
   [TimeToMaturity] >= 2.25 && [TimeToMaturity] < 3.25, "Between 2.25 and 3.25 years to maturity",
   [TimeToMaturity] >= 3.25, "Above 3.25 years to maturity"
)

MaturityBucketID =
SWITCH(
   TRUE(),
   [TimeToMaturity] < 2.25, 1,
   [TimeToMaturity] >= 2.25 && [TimeToMaturity] < 3.25, 2,
   [TimeToMaturity] >= 3.25, 3
)
​

 

3. Create a Pivot Table Visualization

  • Rows: "Filter 1", "Filter 2"
  • Values: "Total Store Count", "Total Value", "Repeat Store Count", "Repeat Store Value", "Lapser Store Count", "Lapser Store Value", "New Store Count", "New Store Value"

Should you require further details or information, please do not hesitate to reach out to me.


Did I answer your question? Mark my post as a solution, this will help others!

If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 🙂

Kind Regards,
Sahir Maharaj
Data Scientist | Data Engineer | Data Analyst | AI Engineer
P.S. Want me to build your Power BI solution? (Yes, its FREE!)
➤ Lets connect on LinkedIn: Join my network of 15K+ professionals
➤ Join my free newsletter: Data Driven: From 0 to 100
➤ Website: https://sahirmaharaj.com
➤ About: https://sahirmaharaj.com/about.html
➤ Email: sahir@sahirmaharaj.com
➤ Want me to build your Power BI solution? Lets chat about how I can assist!
➤ Join my Medium community of 30K readers! Sharing my knowledge about data science and artificial intelligence
➤ Explore my latest project (350K+ views): Wordlit.net
➤ 100+ FREE Power BI Themes: Download Now
LinkedIn Top Voice in Artificial Intelligence, Data Science and Machine Learning

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.

August 2025 community update carousel

Fabric Community Update - August 2025

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