Forum Discussion

ahmedkhan's avatar
ahmedkhan
New Member
4 years ago
Solved

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

 

  • Hi,

    try this:

    EastSales := calculate(sum('Table 1'[Sales]),'Table 2'[Region]="EAST")
     

    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 !

     

1 Reply

  • Hi,

    try this:

    EastSales := calculate(sum('Table 1'[Sales]),'Table 2'[Region]="EAST")
     

    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 !