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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors