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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
diogovaz
Frequent Visitor

Sum values

Hi guys,

 

I already searched but couldn't find an answer.

I have this 3 tables:

Captura de ecrã 2017-09-26, às 12.30.46.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

I want to create a Measure Field on Client Table where sum all Sales NET Value where Invoice Date is greater or equal than Today - 18 Months and Segment ID is X, Y, W, Z.

 

Any ideas how to do it ?

 

Thanks,

1 ACCEPTED SOLUTION
diogovaz
Frequent Visitor

I already solve this. 

 

 

Last Purchase Order = CALCULATE(SUMX('Client';'Sales'[NET Value Measure]);
                       FILTER('Sales';'Sales'[Date_2]>=DATE(YEAR('Sales'[Current Date]);MONTH('Sales'[Current Date])-18;DAY('Sales'[Current Date])));
                       FILTER('Reference';'Reference'[Segment ID]="A"||'Reference'[Segment ID] = "B"||'Reference'[Segment ID] = "C"||'Reference'[Segment ID] = "F"))

Hope this is helpful to other :).

Thanks,

 

View solution in original post

1 REPLY 1
diogovaz
Frequent Visitor

I already solve this. 

 

 

Last Purchase Order = CALCULATE(SUMX('Client';'Sales'[NET Value Measure]);
                       FILTER('Sales';'Sales'[Date_2]>=DATE(YEAR('Sales'[Current Date]);MONTH('Sales'[Current Date])-18;DAY('Sales'[Current Date])));
                       FILTER('Reference';'Reference'[Segment ID]="A"||'Reference'[Segment ID] = "B"||'Reference'[Segment ID] = "C"||'Reference'[Segment ID] = "F"))

Hope this is helpful to other :).

Thanks,

 

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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