Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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?
Thank you in advance!
Solved! Go to Solution.
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.
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.
User | Count |
---|---|
47 | |
32 | |
30 | |
27 | |
26 |
User | Count |
---|---|
56 | |
55 | |
36 | |
33 | |
28 |