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.
I want to check a new measure using DAX query.
In model I have one fact table and three dimension tables. In excel PIvotTable I can put a measure to the Values section and put 3 separate dimension table attributes to Rows section. I would like to do the same query using DAX.
Probably, the query should be looks like this example (it doesn't work):
EVALUATE (
FILTER (
ADDCOLUMNS (
VALUES( DimensionTable1[ColumnName1] ),
VALUES( DimensionTable2[ColumnName2] ),
VALUES( DimensionTable3[ColumnName3] ),
"Measure", [Measure]
),
DimensionTable1[ColumnName1] IN {( Value1 ), ( Value2 )},
DimensionTable2[ColumnName2] IN {( Value3 ), ( Value4 )}
)
)
Solved! Go to Solution.
EVALUATE
CALCULATETABLE(
SUMMARIZECOLUMNS(
DimensionTable1[ColumnName1],
DimensionTable2[ColumnName2],
DimensionTable3[ColumnName3]
"Measure", [Measure]
),
TREATAS(
{Value1, Value2},
DimensionTable1[ColumnName1]
),
TREATAS(
{Value3, Value4},
DimensionTable2[ColumnName2]
)
)
@Anonymous , what are trying to achieve here. If you have tables and they are related, filter from dimension slicer will be taken care of by power bi?
EVALUATE
CALCULATETABLE(
SUMMARIZECOLUMNS(
DimensionTable1[ColumnName1],
DimensionTable2[ColumnName2],
DimensionTable3[ColumnName3]
"Measure", [Measure]
),
TREATAS(
{Value1, Value2},
DimensionTable1[ColumnName1]
),
TREATAS(
{Value3, Value4},
DimensionTable2[ColumnName2]
)
)
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
24 | |
9 | |
7 | |
6 | |
6 |
User | Count |
---|---|
28 | |
11 | |
11 | |
10 | |
6 |