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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
DSArkphire
Frequent Visitor

inaccurate Matrix totals for measure

I've been working on a report and i've run into a problem my filters dont seem to be affecting the totals on the visual.

 

I have 2 filters (DealStage with 11 variable and pipeline with 3 variables) I also have a date filter all of which are within the same table as the value (amount_in_home_currency) which my measure uses. 

 

My actual measures are as follows

 

actual inv =
CALCULATE(
    SUM('Merge2'[amount_in_home_currency]),
    'Merge2'[DealStage] IN { "Invoiced" }
)
 
Forcast inv =
CALCULATE(
    SUM('Merge2'[amount_in_home_currency]),
    'Merge2'[DealStage] IN {"Order Received", "Lost", "Prospect", "Proposal Preparation", "Proposal Negotiation", "Qualified Need", "Proposal Sent", "Order Commitment", "Suspect", "Meeting Scheduled" ,"Workshop Scheduled" }
)
 
and here are the visuals.

 

unfilteredunfilteredfilter example afilter example afilter example bfilter example b

 

1 ACCEPTED SOLUTION

hi, @DSArkphire 

Just use FILTER in your formula as below:

New Forcast inv = 
CALCULATE(
    SUM('Merge2'[amount_in_home_currency]),
   FILTER(Merge2, 'Merge2'[DealStage] IN {"Order Received", "Lost", "Prospect", "Proposal Preparation", "Proposal Negotiation", "Qualified Need", "Proposal Sent", "Order Commitment", "Suspect", "Meeting Scheduled" ,"Workshop Scheduled" }
))
New actual inv = 
CALCULATE(
    SUM('Merge2'[amount_in_home_currency]),
    FILTER(Merge2,'Merge2'[DealStage] IN { "Invoiced" }
))

Result:

11.JPG

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-lili6-msft
Community Support
Community Support

hi, @DSArkphire 

I think there should be something wrong in the relationship manage.

Please try to change the part of the "cross filter direction" from "Single" to "Both"  and try it again.

If you still have the problem, please share a simple sample pbix file for us have a test.

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I'm afraid I have no relevant relationships to change. I've attached a sample of my data which continues to demonstrate the error in question.

 

 

 

hi, @DSArkphire 

Just use FILTER in your formula as below:

New Forcast inv = 
CALCULATE(
    SUM('Merge2'[amount_in_home_currency]),
   FILTER(Merge2, 'Merge2'[DealStage] IN {"Order Received", "Lost", "Prospect", "Proposal Preparation", "Proposal Negotiation", "Qualified Need", "Proposal Sent", "Order Commitment", "Suspect", "Meeting Scheduled" ,"Workshop Scheduled" }
))
New actual inv = 
CALCULATE(
    SUM('Merge2'[amount_in_home_currency]),
    FILTER(Merge2,'Merge2'[DealStage] IN { "Invoiced" }
))

Result:

11.JPG

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Ah thank you that was it.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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