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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Weird Matrix Visual behavior

Hi Community

Can pls anyone explaine how this can be possible  (sum of values do not match totals)? Isn't total supposed to show colulmn sum?
Values are a measure (dtype :Whole number) that sourced a column where values are -1,0,1.

No report/page/visual level filter applied.
Capture.JPG

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Anonymous - Here's a simpler example of a measure that is not additive:

Only 2018 = IF(SELECTEDVALUE('Date'[Year]) = 2018, [Sales],0)
The logic states that if there is only one year involved, and that year is 2018, then we calculate the results. Otherwise, it's 0.
Non-Additive.PNG
In order to suggest another solution, I first need to understand what exactly the requirements are.
 

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

@Anonymous - what is the measure calculation?

Anonymous
Not applicable

hi @Anonymous calculation means DAX formula?

MTD LY =
IF(Data[Year]=Min(Data[Year]) && MONTH(Data[Yesterday_Region]+1)+IF(Data[Report]="PY",12,0)=Data[Month Sorter]-1
&& Data[DateYr]>Data[Yesterday_Region],0,IF(Data[Year]=Min(Data[Year]),Data[Mapped_Pax],0))
Anonymous
Not applicable

@Anonymous - The reason for the behavior is that the DAX formula does different things in based on different Filter contexts. Because of the logic built in, it is not additive.

Does it make sense?

Anonymous
Not applicable


@Anonymous wrote:

@Anonymous - The reason for the behavior is that the DAX formula does different things in based on different Filter contexts. Because of the logic built in, it is not additive.

Does it make sense?


not really, can you plese elaborate or give an example?

the question is what to do with this, rewrite measure formula?

Anonymous
Not applicable

@Anonymous - Here's a simpler example of a measure that is not additive:

Only 2018 = IF(SELECTEDVALUE('Date'[Year]) = 2018, [Sales],0)
The logic states that if there is only one year involved, and that year is 2018, then we calculate the results. Otherwise, it's 0.
Non-Additive.PNG
In order to suggest another solution, I first need to understand what exactly the requirements are.
 
Anonymous
Not applicable

@Anonymous - I should add - Total is also calculated, according to the DAX formula. It is not the sum of the parts.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.