Forum Discussion

patroriki's avatar
patroriki
Frequent Visitor
3 years ago

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

  • 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.

  • 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.