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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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