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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
nick_mk
Frequent Visitor

Doing LFL Calculations

I'm a bit stuck...

 

I'm trying to do a LFL measure based on week/month/quarter/year using a 4-4-5 custom calendar. I need it at location level, but obviously, I want to aggregate it up to site,region level. Every time I aggregate the measures I have created they forget it is supposed to be at location level and the LFL calc gets aggregated to site or region. Measures work on the fly so it isn't surprising, however, is there another way to do LFL?

5 REPLIES 5
nick_mk
Frequent Visitor

I'm a bit stuck...

 

I'm trying to do a LFL measure based on week/month/quarter/year using a 4-4-5 custom calendar. I need it at location level, but obviously, I want to aggregate it up to site,region level. Every time I aggregate the measures I have created they forget it is supposed to be at location level and the LFL calc gets aggregated to site or region. Measures work on the fly so it isn't surprising, however, is there another way to do LFL?

Anonymous
Not applicable

Hi @nick_mk,

 

If you mean create YOY measure to calculate with previous period, you can refer to below links:

YoY Percent Change

Custom Year-Over-Year Calculation in DAX

 

Regards,

Xiaoxin Sheng

Sorry no, not really.

 

Most of the business world use like for like calculations in doing YoY variances. Like for Like means you only include products/stores (depending what you are comparing) that appearred in both years. Any data from new stores or old stores is disregarded.

 

In excel/sql this task is relatively simple. You essentially lookup/inner join between 2 datasets to only pull information applicable in both.

 

I have a long winded way of doing it by creating 2 calculated fields per variance - 1 to determine if the product/store was available/open the previous year and another to determine what the last year value was if it was available/open. Frankly it's disappointing and I might as well add the value columns myself in SQL, but I thought I wouldn't have to duplicate data in Power Bi. 

 

Also I work to a 4-4-5 calendar which is standard across the UK for retailers. This means I can't apply a MoM comparison directly. I have apply weekly averages and use a measure. This is ok but as the data is no longer at row level, the calculation can only be use din limited ways.

Anonymous
Not applicable

HI @nick_mk,

 

I think it will be help if you share some sample data and expected result.

It is hard to deal with your requirements without any sample data.


Regards,

Xiaoxin Sheng

Sorry it's confidential

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.