Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello
The four measures below are calculating the total for the same product. 2 are filtering on the ProductID and 2 on the ProductName.
2 are using the FILTER function in calculate and 2 are using the calculate built in filter
When I add all 4 to a PBI report and a slicer only c is ignoring the filter context?
My question is why isn’t the first function (a) always returning the value and ignoring the filter?
The only one that is c
EVALUATE
ROW ( "a", CALCULATE ( SUM ( SalesFact[Revenue] ), product[ProductID] = 92 ) )--> Expect it to Always returns total value for Product
EVALUATE
ROW (
"b", CALCULATE (
SUM ( SalesFact[Revenue] ),
FILTER ( 'Product', product[ProductID] = 92 )
)
)
EVALUATE
ROW ( "c", CALCULATE ( SUM ( SalesFact[Revenue] ), 'Product'[Product]="Abbas UM-19" ) )--> Always returns total value for Product
EVALUATE
ROW (
"d", CALCULATE (
SUM ( SalesFact[Revenue] ),
FILTER ( 'Product', 'Product'[Product]="Abbas UM-19" )
)
)
Thank in advance.
Ibendlin
Thanks for the reply and the link, I think I understand the context transition but I'm still not sure why filters from the same table are producing different results? Why dose the field I filter on matter?
EVALUATE
ROW ( "a", CALCULATE ( SUM ( SalesFact[Revenue] ), 'Product'[ProductID] = 92 ) )
EVALUATE
ROW ( "c", CALCULATE ( SUM ( SalesFact[Revenue] ), 'Product'[Product]="Abbas UM-19" ) )
Thanks again.
I am not saying that I understand the article fully but I know the answer is in the article.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
11 | |
11 | |
10 | |
10 |
User | Count |
---|---|
19 | |
14 | |
13 | |
11 | |
8 |