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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.