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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
PBI5851
Helper V
Helper V

Adding Targets to Matrix

Hello,

Please can you help me in adding target to the matrix. I tried to add a measure as Target =2 and it works for individual records but it does not sum and in the total it shows as 2 rather than summarized. Not sure how else to add this target. 

 

My raw data as

TMRDOrdIDOrdStatusOrdStatusDateRegion
John SmithSteve TannerABC123Entered1/1/2022West
John SmithSteve TannerABC123Shipped1/5/2022West
John SmithSteve TannerABC123Complete2/10/2022West
John SmithSteve TannerABC234Entered1/1/2022West
John SmithSteve TannerABC234Shipped1/10/2022West
John SmithSteve TannerABC234Complete1/15/2022West
John SmithSteve TannerABC345Entered2/5/2022NW
John SmithSteve TannerABC345Shipped2/7/2022NW
John SmithSteve TannerABC345Complete2/10/2022NW
Mary JaneBridget FDEF123Entered2/5/2022East
Mary JaneBridget FDEF123Shipped2/5/2022East
Mary JaneBridget FDEF123Complete2/5/2022East
Brad MarleyJohn QEFG123Entered2/16/2022East
Brad MarleyJohn QEFG123Entered2/16/2022East
Brad MarleyJohn QEFG123Entered2/16/2022East
Brad MarleyJohn QEFG234Entered2/16/2022West
Brad MarleyJohn QEFG234Entered2/16/2022West
Brad MarleyJohn QEFG234Entered2/16/2022West

 

Expected to have two outputs. When adding region, though John Smith shows up twice, he still has a target of 2 per region and when region is not displayed, he is still supposed to have 2 as the target.  And the totals should sum up correctly. 

 

Output 1:

 TMRegionComplete CountComplete Target
 John SmithWest22
 Mary JaneEast12
 John SmithNW12
 Brad MarleyEast12
 Brad MarleyWest12
Total  610

 

Output 2:

 TMComplete CountComplete Target
 John Smith32
 Mary Jane12
 Brad Marley22
Total 66
1 ACCEPTED SOLUTION
HoangHugo
Solution Specialist
Solution Specialist

Hi, maybe I misunderstand you, please try this one

 

complete_target =

  var target = 2

  return SUMX(SUMMARIZE(datatable,TM column),target)

 

View solution in original post

3 REPLIES 3
PBI5851
Helper V
Helper V

@HoangHugo It is not working as it is summing up every single occurence. 

HoangHugo
Solution Specialist
Solution Specialist

Hi, maybe I misunderstand you, please try this one

 

complete_target =

  var target = 2

  return SUMX(SUMMARIZE(datatable,TM column),target)

 

HoangHugo
Solution Specialist
Solution Specialist

Hi,

try this one

 

measure

complete_target =

  var target = 2

  return SUMX(datatable,target)

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.