Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

How to evaluate measure and several dimensions?

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 )}
	)
)

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

EVALUATE
    CALCULATETABLE(
    
        SUMMARIZECOLUMNS(
            DimensionTable1[ColumnName1],
            DimensionTable2[ColumnName2],
            DimensionTable3[ColumnName3]
            "Measure", [Measure]
        ),
        
        TREATAS(
            {Value1, Value2},
            DimensionTable1[ColumnName1]
        ),
        TREATAS(
            {Value3, Value4},
            DimensionTable2[ColumnName2]
        )
    )

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@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?

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

EVALUATE
    CALCULATETABLE(
    
        SUMMARIZECOLUMNS(
            DimensionTable1[ColumnName1],
            DimensionTable2[ColumnName2],
            DimensionTable3[ColumnName3]
            "Measure", [Measure]
        ),
        
        TREATAS(
            {Value1, Value2},
            DimensionTable1[ColumnName1]
        ),
        TREATAS(
            {Value3, Value4},
            DimensionTable2[ColumnName2]
        )
    )

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.