Forum Discussion
Hemant_Jaiswar
1 year agoHelper I
context change
aggregation at customer name level desired output Month Total 2023 Total 2024 LFL 2023 LFL 2024 Jan 20 35 20 27 Feb 21 31 21 22 Mar 20 37 20 28 Apr 3...
bhanu_gautam
1 year agoSuper User
Create the following measures to calculate the totals and LFL (Like-for-Like) sales.
Total 2023 Sales = SUM('Sales'[2023 Sales])
Total 2024 Sales = SUM('Sales'[2024 Sales])
LFL 2023 Sales =
CALCULATE(
SUM('Sales'[2023 Sales]),
FILTER(
'Sales',
NOT(ISBLANK('Sales'[2023 Sales])) && NOT(ISBLANK('Sales'[2024 Sales]))
)
)
LFL 2024 Sales =
CALCULATE(
SUM('Sales'[2024 Sales]),
FILTER(
'Sales',
NOT(ISBLANK('Sales'[2023 Sales])) && NOT(ISBLANK('Sales'[2024 Sales]))
)
)
Go to the "Visualizations" pane and select the "Table" visualization.
Drag the "Month" column to the table.
Drag the measures you created (Total 2023 Sales, Total 2024 Sales, LFL 2023 Sales, LFL 2024 Sales) to the table.
Hemant_Jaiswar
1 year agoHelper I
- this has to be done at store level without keeping store at that views and check each store via months only when sales is present in both the month that store should be calculated in total sales for that month
LFL 2023: For each month, calculate the total 2023 sales only for stores that have sales in both 2023 and 2024 for that same month. - LFL 2024: For each month, calculate the total 2024 sales only for stores that have sales in both 2023 and 2024 for that same month. please note