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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Measure based on values of three columns with a special formula

Hello great PBI Community!

 

Can you please help me to develop a measure? 

As you see below I have some data on the beginning of each month for three years, where the "Parameter" column needs to be normalised using a "Correction Factor" for each month. 

Here is the formula that I intend to use: 

Corrected Parameter = ((Parameter in any specific month)-min(Parameters in the last 12 month))*Correction factor+min(Parameters in the last 12 month)

 

Note: for the first year indeed "min(Parameters in the last 12 month)" might be tricky as data is not available for 12 months. 

 

Page 1.JPG

 

4 REPLIES 4
Anonymous
Not applicable

HI @ehsanb,

Did these suggestions help with your scenario? If this is a case, you can choose the best one to accept it to help others who faced the same issue to find it more quickly.
If the above not help, please feel free to post here with detailed information and description, then we can test and troubleshoot on it.

Regards,
Xiaoxin Sheng

Anonymous
Not applicable

@amitchandak I used your advice to develop a new measure to find part of the measure I intended (see below formula and graph): 

min(Parameters in the last 12 month)

 

MinParameterLast12Months = CALCULATE(MIN(Blad1[Parameter]),DATESINPERIOD(Blad1[Date], MAX(Blad1[Date]),-12,MONTH))

 

Can you help me to complete the measure?

Corrected Parameter = ((Parameter in any specific month)-min(Parameters in the last 12 month))*Correction factor+min(Parameters in the last 12 month)

 

Page 2.JPG

Anonymous
Not applicable

HI @Anonymous,

You can try to use the following measure formula if this suitable for your requirement:

Measure =
VAR currDate =
    MAX ( Table[Date] )
VAR prevPara =
    CALCULATE (
        MIN ( Table[Parameter] ),
        FILTER (
            ALLSELECTED ( Table ),
            [Date]
                = DATE ( YEAR ( currdate ), MONTH ( currDate ) - 12, DAY ( currDate ) )
        )
    )
RETURN
     ( MAX ( Table[Paramter] ) - prevPara ) * 'Correction factor' + prevPara

If the above not help, it will help if you share some dummy data with raw table structures to test:

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

amitchandak
Super User
Super User

@Anonymous , you can use a formula like this with date table

Rolling 12 = CALCULATE(max(Table[Correction Factor]),DATESINPERIOD('Date'[Date ],MAX('Date'[Date ]),-12,MONTH))

 

For other refer

Power BI — Year on Year with or Without Time Intelligence
https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a
Power BI — Qtr on Qtr with or Without Time Intelligence
https://medium.com/@amitchandak.1978/power-bi-qtd-questions-time-intelligence-2-5-d842063da839
Power BI — Month on Month with or Without Time Intelligence
https://medium.com/@amitchandak.1978/power-bi-mtd-questions-time-intelligence-3-5-64b0b4a4090e

 

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

Top Solution Authors
Top Kudoed Authors