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
crt9
New Member

Unable to add a measure in a matrix table

Hello,

 

I have created a measure named "QuadrantLog" by using the following DAX code:

 

 

QuadrantLog =

VAR CurrentPercentage = SELECTEDVALUE('Dataset - New'[Percentage of new triggers])

VAR CurrentTriggers = SELECTEDVALUE('Dataset - New'[Log Triggers])

VAR AveragePercentage = [AvgPercentage]

VAR AverageTriggers = [AvgLogTriggers]

RETURN

SWITCH(

    TRUE(),

    //Q3

    CurrentPercentage < AveragePercentage && CurrentTriggers < AverageTriggers, "Q3",

    //Q2

    CurrentPercentage > AveragePercentage && CurrentTriggers < AverageTriggers, "Q2",

    //Q4

    CurrentPercentage < AveragePercentage && CurrentTriggers > AverageTriggers, "Q4",

    //Q1

    CurrentPercentage > AveragePercentage && CurrentTriggers > AverageTriggers, "Q1",

     "#000000"

)

 

 

 

What I want to do is to add the measure "QuadrantLog" in a matrix, but in the Rows or Columns fields. The only thing I can do is to add it in the Values field, as you can see in the below screenshot. Why am I unable to add it in the Rows or Columns fields?

 

crt9_0-1688719131750.png

 

 

 Thank you in advance!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @crt9 

The measure can only be set as value in a matrix visual, the field of "Row" and "Column" in matrix visual must be put with the column or calculated column of a table.Measure is a dummy value, and the rows and columns in the matrix must hold the entity columns present in the table.You can translate the measure to the calculated column, then put the column to the row or column of matrix visual.

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @crt9 

The measure can only be set as value in a matrix visual, the field of "Row" and "Column" in matrix visual must be put with the column or calculated column of a table.Measure is a dummy value, and the rows and columns in the matrix must hold the entity columns present in the table.You can translate the measure to the calculated column, then put the column to the row or column of matrix visual.

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

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.

Top Solution Authors
Top Kudoed Authors