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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors
Top Kudoed Authors