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 dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I have a table - Table1 with columns A, B, C, and a measure [x] which uses a calculate function to count rows on this table, based on some conditions. I also have a second table - Table2, with columns X,Y,Z.
Now, I want to create another measure like this:
CALCULATE (
[x],
ALL(Table2),
Table1[A] in VALUES(Table2[Z])
)
The point of ALL is to remove filters from Table2[Z], because I want these values not to be affected by the slicers. However, this query is not working and VALUES(Table2[Z]) is still being affected by the slicer!
Solved! Go to Solution.
@Anonymous Try:
CALCULATE (
[x],
ALL(Table2),
Table1[A] in ALL(Table2[Z])
)
@Anonymous Try:
CALCULATE (
[x],
ALL(Table2),
Table1[A] in VALUES(ALL(Table2[Z]))
)
@Greg_Deckler
It gives an error: The VALUES function expects a column reference expression or a table reference expression for argument '1'
@Anonymous Try:
CALCULATE (
[x],
ALL(Table2),
Table1[A] in ALL(Table2[Z])
)
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 |
---|---|
23 | |
11 | |
10 | |
9 | |
8 |