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
v-jiascu-msft Super Contributor
Super Contributor

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
v-jiascu-msft Super Contributor
Super Contributor

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

Highlighted
v-jiascu-msft Super Contributor
Super Contributor

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
Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 51 members 918 guests
Please welcome our newest community members: