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! Learn more

Reply
Alexandra_B
Helper III
Helper III

Baseline Dax - extract data for each month

Hello.
I have a formula to calculate the baseline per month, I cannot figure out how to do it for each month, every month since July 21.

The formula is : Baseline = number + number * (monthly HDD + monthly CDD)

 

Any advice is welcomed.

 

Thank you.

baseline.JPG

 

3 REPLIES 3
tamerj1
Super User
Super User

@Alexandra_B 
Please try

=
VAR X = 10 --Insert correct value
VAR Y = 1.3 --Insert correctvalue
RETURN
    SUMX (
        VALUES ( CCD_18C[Month] ),
        --Use the column that you will be slicing by it
        VAR CurrentMonth = CCD_18C[Month]
        VAR CCDValue =
            CALCULATE ( SUM ( CCD_18C[CCD 18] ) )
        VAR HDDValue =
            CALCULATE ( SUM ( HDD_15C[HDD 15] ), HDD_15C[HMonth] = CurrentMonth )
        RETURN
            X + Y * ( CCDValue + HDDValue )
    )
tamerj1
Super User
Super User

Hi @Alexandra_B 

what is the relationship between the two tables? How does your visual look like? What are you slicing by?

I haven`t set a relationship. I just downloaded the data, two separate tables , they don`t interact with each other. I need to set a Dax to calculate that formula monthly. and then create a graph to show the values.

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.