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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
ahmedkhan
New Member

HOW TO CREATE MEASURE OF TOTAL SALES AMOUNT PER REGION, REGION IS IN ANOTHER TABLE

TOTAL SALES IS A MEASURE WHICH IS IN TABLE 1

 

REGION IS IN TABLE 2 , table 2 has a relatiohship with table 1 though city

 

TRYING TO CREATE TOTAL SALES MEASURE ONLY FOR EAST REGION

 

CITYRegion
AEAST
BWEST
CSOUTH
DNORTH
ENORTH
FEAST
GWEST
HSOUTH
IWEST
JEAST
KSOUTH
LEAST

 

1 ACCEPTED SOLUTION
serpiva64
Super User
Super User

Hi,

try this:

EastSales := calculate(sum('Table 1'[Sales]),'Table 2'[Region]="EAST")
 
serpiva64_0-1647017234138.png

If this post is useful to help you to solve your issue consider giving the post a thumbs up 

 and accepting it as a solution !

 

View solution in original post

1 REPLY 1
serpiva64
Super User
Super User

Hi,

try this:

EastSales := calculate(sum('Table 1'[Sales]),'Table 2'[Region]="EAST")
 
serpiva64_0-1647017234138.png

If this post is useful to help you to solve your issue consider giving the post a thumbs up 

 and accepting it as a solution !

 

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

Top Solution Authors
Top Kudoed Authors