Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi,
DAX has two functions that can be used as filter in CALCULATE: VALUES() and FILTERS().
Would anyone know how they really differ - apart from the fact that VALUES() also takes a table as parameter ? I have done a few tests, but could not spot a difference in results...
Solved! Go to Solution.
They have difference. FILTERS() will directly apply the column as filter into your calculation, which will ingore other filter. But for VALUES(), it just returns a table of single column with distinct values, which means it will take other filter as well. Please see my sample below:
Measure with VALUES = COUNTROWS(VALUES('Table'[YearMonth]))
Measure with FILTERS = COUNTROWS(FILTERS('Table'[YearMonth]))
Regards,
They have difference. FILTERS() will directly apply the column as filter into your calculation, which will ingore other filter. But for VALUES(), it just returns a table of single column with distinct values, which means it will take other filter as well. Please see my sample below:
Measure with VALUES = COUNTROWS(VALUES('Table'[YearMonth]))
Measure with FILTERS = COUNTROWS(FILTERS('Table'[YearMonth]))
Regards,
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 49 | |
| 40 | |
| 37 | |
| 14 | |
| 13 |
| User | Count |
|---|---|
| 85 | |
| 69 | |
| 37 | |
| 28 | |
| 27 |