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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
ForzaMami
Regular Visitor

Using a top row

It's a little hard to explain, I need to use the same formula in a single dax formula, the one in the top row. I'm trying to power the "Exponential Smoothing" column in the excel below. Is something like this possible ?

 

ForzaMami_0-1650617999580.png

 

Thanks

6 REPLIES 6
ForzaMami
Regular Visitor

Hi ,

I just want Exponential Smoothing column


PBX
https://easyupload.io/gouz99

 

Data and Sample
https://easyupload.io/u81aea

 

ForzaMami_0-1650960890796.png

 

Thank You

 

ForzaMami
Regular Visitor

did i want something so hard 🙂

BA_Pete
Super User
Super User

Hi @ForzaMami ,

 

You should be able to set it as a variable:

_expoSmoothing =
VAR __minSatis =
CALCULATE(
    MAX(yourTable[Satis]),
    FILTER(
        yourTable,
        yourTable[Year_Month] = MIN(yourTable[Year_Month])
    )
)
RETURN
([thing1] * [thing2]) + ([thing3] * __minSatis)

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




I need to take the calculation from the previous line as a variable. This did not happen 😞

 

Sorry, I misunderstood your requirement.

 

Add an index column to your table and set a variable like this:

_expoSmoothing =
VAR __lastExpoValue =
LOOKUPVALUE(
    yourTable[Exponential Smoothing],
    yourTable[Index],
    yourTable[Index] - 1
)
RETURN
([thing1] * [thing2]) + ([thing3] * __lastExpoValue)

 



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




sorry i think i didn't explain.  same formula need same formula value 

 

ForzaMami_0-1650623908340.png

 

Exponential_1 =
([Input2Values]*[Measure Last Period]) + ([Input2Values] * [Measure Last Period](Wrong) )
 
20200301 = (0,5*633.973) + ( 0,5*4.076.361 ) = 2.355.167 must
20200401 = (0,5*766.859) + ( 0,5*2.355.167 )= 1.561.013 must

 

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors