Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Is it possible to write a DAX measure that lets me select ALL for a certain column, but then filter that column in the same measure? For example, I'd like to write a formula like this:
Measure =
CALCULATE(
SUM( Table[Column1]),
ALL(Table[Column2]),
Table[Column2] > 5 && Table[Column2] < 10
)
)
Where I use ALL to remove the filters on that specific column, but then apply my own filters directly on that column instead.
Thanks!
Solved! Go to Solution.
Hi @Anonymous
try to use combination of FILTER() and ALL() like
Measure =
CALCULATE(
SUM( Table[Column1]),
FILTER(ALL(Table[Column2]),
Table[Column2] > 5 && Table[Column2] < 10)
)
)
do not hesitate to give a kudo to useful posts and mark solutions as solution
Hi @Anonymous
try to use combination of FILTER() and ALL() like
Measure =
CALCULATE(
SUM( Table[Column1]),
FILTER(ALL(Table[Column2]),
Table[Column2] > 5 && Table[Column2] < 10)
)
)
do not hesitate to give a kudo to useful posts and mark solutions as solution
Yep, this helped. I realize now that I was missing a filter in my statement and that's why I was getting a blank value. Thanks!
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
26 | |
10 | |
10 | |
9 | |
6 |