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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors