cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
eddd83 Regular Visitor
Regular Visitor

earlier - column calculation

 

 

CALCULATE (
                SUM ( Fact_Table[Freight Base Charge - Order] ),
                FILTER (
                    ALL ( Fact_Table ),
                    Fact_Table[Transaction_ID] = EARLIER ( Fact_Table[Transaction_ID] )
                )
)

 

 

I've read some articles, but I'm still having a difficult time wrapping my mind around this column formula.  Is it just listing the total for each transaction ID?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Microsoft v-jiascu-msft
Microsoft

Re: earlier - column calculation

Hi @eddd83,

 

Yes, you are right. That's the magic of context. Please refer to power-bi/desktop-quickstart-learn-dax-basics#context

row-context-and-filter-context-in-dax/

https://www.youtube.com/watch?v=Nde7lTSrYFU.

 

 

Best Regards,
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Highlighted
Microsoft v-jiascu-msft
Microsoft

Re: earlier - column calculation

Hi @eddd83,

 

Yes, you are right. That's the magic of context. Please refer to power-bi/desktop-quickstart-learn-dax-basics#context

row-context-and-filter-context-in-dax/

https://www.youtube.com/watch?v=Nde7lTSrYFU.

 

 

Best Regards,
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Microsoft v-jiascu-msft
Microsoft

Re: earlier - column calculation

Hi @eddd83,

 

Could you please mark the proper answers as solutions?

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power BI Desktop Update - February 2020

Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors