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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
admin11
Memorable Member
Memorable Member

How to link sales table and target table ?

Hi All

I have a Target Table :-

 

I have a sales table :-

 

i Have a SOURCE Table with below expression ( I think the expression not working ) :-

Source =
var _1=DISTINCT(UNION(all(SALES[SOURCE]), all(TARGET_[SOURCE])))
return
FILTER(_1,[SOURCE]<>BLANK())
 

admin11_2-1657691585753.png

 

I have SALES YTD expression :-

Sales YTD = CALCULATE ( [SALES_M],DATESYTD('DATE'[Date]))

 

I have TARGET YTD expression :-

Target YTD =
var _max = today()
return
calculate(TOTALYTD(('TARGET_'[TARGET_]),'DATE'[Date]),filter('DATE','DATE'[Date]<=_max))

My issue :-

My issue :-


Remark :-

- I have link the sales table SOURCE with SOURCE table SOURCE field.

- I have link the TARGET_ table SOURCE with SOURCE table SOURCE field.

- SALES and TARGET_ table Date field are link to master calendar

 

Paul

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@admin11 , Do you have common, Date, Staff and source tables ?

 

seem like target is joined with staff table

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@admin11 , Do you have common, Date, Staff and source tables ?

 

seem like target is joined with staff table

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak 

Thank you it work fine now. after i create the link table for STAFF :-

STAFF_SUB =
DISTINCT (
UNION (
SUMMARIZE ( SALES, SALES[STAFF_SUB] ),
SUMMARIZE ( TARGET_, TARGET_[GROUP_] )
)
)
 
paul
 

@amitchandak I don't have STAFF_SUB Table . STAFF_SUB field appear at SALES & TARGET_ table.  Thank you look into my question.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors