cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
SO Frequent Visitor
Frequent Visitor

Text Measure and Matrix Value / Row issues

This is my first post.  This is a very simple, but frustrating issue and complicated because we are using Analytic Services (hence no access to Query Editor). 

I have a field called ClassCode.  The class code is and all of the data within it is of the format Class and Section number for example, 

ClassCode

ABC101-01
ABC101-02
XYZ202-01
XYZ202-02
Class - Section #


People are assigned to each Classcode.  

ClassCode         ClassCount#
ABC101-01           30
ABC101-02           22
XYZ202-01           20
XYZ202-02           28

I want to strip away the Section Numbers so that I can find the number of people in each Class.  

I used a simple measure 

Class= LEFT( MAX( 'BoardAttendanceDetail'[ClassCode]), 6 )
For example, ABC101-01 becomes ABC101

I ultimately am trying to produce a Matrix or TreeMap, showing the following 

  

Class               ClassCount#
ABC101               52
XYZ202               48

I can create a table 

 

ClassCode         ClassCount#      Class

ABC101-01           30                   ABC101
ABC101-02           22                   ABC101
XYZ202-01           20                   XYZ202
XYZ202-02           28                   XYZ202


I am Not able to use the Class measure in a Matrix, TreeMap, etc., where I need to place Class as a Row, Column, etc.  I cannot drop the field "Class" into either the Column or Row.   

CapturePBI.PNG

 

 

I tried experimenting with the format of the Measure.  I tired experimenting with the Matrices, but I have been stuck with this really simple challenge.  I do know I could address this with the Query Builder; however, we are building this out through Analytic Services, so I need to find ways that will work for builders. 

I have reviewed the Forums, and have not found a solution.  I have worked with many numerical measures and have not had this issue.  Any thoughts would be appreciated.  

Many thanks 

1 ACCEPTED SOLUTION

Accepted Solutions
v-joesh-msft New Contributor
New Contributor

Re: Text Measure and Matrix Value / Row issues

Hi @SO ,

A measure cannot be placed in the Rows or Columns of the matrix. You need to create the column "Class" in the Analytic Services and then connect it to the power bi.

Best Regards,
Community Support Team _ Joey
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
v-joesh-msft New Contributor
New Contributor

Re: Text Measure and Matrix Value / Row issues

Hi @SO ,

A measure cannot be placed in the Rows or Columns of the matrix. You need to create the column "Class" in the Analytic Services and then connect it to the power bi.

Best Regards,
Community Support Team _ Joey
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

Helpful resources

Announcements
Coming Soon: T-Shirt Design Contest

Coming Soon: T-Shirt Design Contest

Keep your eyes open for our upcoming T-shirt design contest!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power BI Desktop Update - February 2020

Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors