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

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

Reply
Anonymous
Not applicable

Matrix shows all rows when adding a measure

Hi!

I have three tables in my model: Opportunities, goals and dates. Opportunities and goals have relationships with Date table:

a. Actual Close Date (Opportunities) - Day(Table)

b. GoalStartDate(Goals) - Day(Table)

 

Opportunities cloumns: Opp Id, Opp Number, Actual Close Date

Goals columns: GoalId, MetricGoalId, Target Amount, GoalStartDate

 

I created a measure to get the target Amount of a goals with specified MetricGoalId

 

 

Noke Target Amount = 
      if(
           max(goals[_metricid_value])="83fd18c0-5252-ec11-8f8e-000d3a0ce23b",
           CALCULATE(
               SUM(goals[targetmoney]),
               goals[_metricid_value]="83fd18c0-5252-ec11-8f8e-000d3a0ce23b"), 
           BLANK()
       )

 

I'm creating a matrix and it looks good. 

 

OscarDom_0-1648918031031.pngOscarDom_1-1648918093065.png

The problem is that when i add the measure my matrix shows all opportunities in each month.

OscarDom_2-1648918331458.png

There is a way to fix it? I think that my measure is not the correct one at all but i cannot understand what i need to change.

 

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

This is happening because the Opp ID column is not in the Goals Table.  Can you bring over that column in the Goals Table via a calculated column formnla.  To your visual, drag Opp ID from the Goals Table.  


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

6 REPLIES 6
Ashish_Mathur
Super User
Super User

Hi,

This is happening because the Opp ID column is not in the Goals Table.  Can you bring over that column in the Goals Table via a calculated column formnla.  To your visual, drag Opp ID from the Goals Table.  


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi! Now i'm understand what it is happenig. I will make changes to my schema to get opp id in goals table. Thabk you

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Help please!

Greg_Deckler
Community Champion
Community Champion

@Anonymous Can't see what the measure is returning so not sure. You could always create a Complex Selector: (1) The Complex Selector - Microsoft Power BI Community



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

@Greg_Deckler this is what the measure is returning when the opp number is not addedd. All is ok

OscarDom_1-1648932849207.png

And when opp number is added

 

OscarDom_0-1648932757810.png

 

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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.