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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
poweralex
Frequent Visitor

Incorrect filter context

Hello everyone,

 

I have a supposedly simple problem for which I have not yet found a solution, even here in the forum. What I have found out is that a filter context is probably not correct here.

In the following screenshot you can see the incorrect calculation of the total.

poweralex_0-1715851924510.png


Here you can see the measure I use to calculate the total using Calculate with a few filters.

poweralex_1-1715851962217.png

 

Let me know if you need further informations. 

 

Thanks in advance. 

 

Kind regards

Alex

1 ACCEPTED SOLUTION
TomMartens
Super User
Super User

Hey @poweralex ,

 

are you creating a calculated column or measure?

I'm wondering because, you do not use any aggregation function for ...[totalCost] and ...[Logg...]
This is odd when you are creating a measure because a column reference without a row context requires an aggregation function.
If you are creating a calculated column, then the formula looks even more because you use columns from three different tables without using RELATED or RELTATEDTABLE.

Please provide more information about the object that you are trying to create: calculated column or measure?

Nevertheless, information about the model is required, and the most important part: what is the expected result?

Regards,
Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

View solution in original post

1 REPLY 1
TomMartens
Super User
Super User

Hey @poweralex ,

 

are you creating a calculated column or measure?

I'm wondering because, you do not use any aggregation function for ...[totalCost] and ...[Logg...]
This is odd when you are creating a measure because a column reference without a row context requires an aggregation function.
If you are creating a calculated column, then the formula looks even more because you use columns from three different tables without using RELATED or RELTATEDTABLE.

Please provide more information about the object that you are trying to create: calculated column or measure?

Nevertheless, information about the model is required, and the most important part: what is the expected result?

Regards,
Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors