Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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]
)
)
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 17 | |
| 8 | |
| 8 | |
| 7 |