cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SO
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 Solution Sage
Solution Sage

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 Solution Sage
Solution Sage

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
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Join THE global Microsoft Power Platform event series.

Join THE global Power Platform event series.

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors