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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Resolver I
Resolver I

VALUES() as CALCULATE() filter

Hello Community,

I understand that VALUES() returns a distinct one column table.

I also understand that using VALUES() with one filter context and then using that as a filter for a calculation with another filter context will run the calculation only taking the distinct values generated from the first context into account. Hope I'm not far off.

But, I've come across this behaviour which I don't really understand and am hoping someone can explain.

If I do a simple SalesAmt = SUM('FactTable'[SalesAmt]) I obviously just get a simple sum, but if I the do this:
CALCULATE( [SalesAmt], VALUES('FactTable'[CustomerID])) then I get a very different result which I cannot explain to myself

What am I filtering away and why?

Solution Sage
Solution Sage

That is odd. Please share more info about both your model (tables and relationships) and the visual (which fields and measures used in it).



Microsoft Employee

I made a mistake - the measure I am using is not a simple sum but a SUMX()

SUMX( 'FactTable', 'FactTable'[SalesAmt]) * 'FactTable'[Factor] )

I would still like an explanation but I apologize for the confusion

Hi @BIanon ,


Here I create a sample and I couldn't reproduce your issue. Please share a sample file with me and show me a screenshot with the result you want. This will make it easier for me to find the solution.


Best Regards,
Rico Zhou


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City


Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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