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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

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 @Anonymous ,

 

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 @Anonymous ,

 

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.