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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
sinanalmac
Resolver I
Resolver I

I want to create a measure that doesn't affect by row level. only add the value to subtotal.

Hi All ,

I have two tables

 

One's name v_PBI_CEScoreCard_CERegion and the columns are;

RepPointName, SalesRepName, PersonalCost

The other one is Dim_RepPoint and its columns are
RepPointName, RepPointCost

I created a relationship between these two tables using by RepPointName Column.


I want to create a measure for a matrix visuals Row SubTotals. And I created this:

 

TotalCost With RepPoint = SUM(v_PBI_CEScoreCard_CERegion[PersonalCost]) + SUMX(VALUES(v_PBI_CEScoreCard_CERegion[RepPointName]), LOOKUPVALUE(Dim_RepPoint[RepPointCost], Dim_RepPoint[RepPointName], v_PBI_CEScoreCard_CERegion[RepPointName]))


This one is showed the right calculation for the row subtotals. but it also adds RepPointCost for every SalesRep by row. I just want to see RepPointCost into the subtotal.  my formüla  olsa add  the value to salesRepname .  Can you help me with it?

 here is my  visual  explanation

sinanalmac_0-1679919186891.png

 



Here  my file that I worked for

https://www.dropbox.com/s/qd34mtwku8xvvcj/Solutio.pbix?dl=0 

 

 

 Best regards
Sinan 

1 REPLY 1
amitchandak
Super User
Super User

@sinanalmac , For subtotal

 

we usually do like

calculate([Your measure], removefilters(Table[Sales Rep]))

 

Grand total

 

calculate([Your measure],allselected( ))

 

Percent of Total and Percent of SubTotal https://www.youtube.com/watch?v=6jTildcV2ho
https://www.youtube.com/watch?v=cN8AO3_vmlY&t=24270s

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

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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