• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Creating Measure That Displays Text Value|Power Pivot|Excel Forum|My Online Training Hub

You are here: Home / Creating Measure That Displays Text Value|Power Pivot|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumPower PivotCreating Measure That Displays Text…
sp_PrintTopic sp_TopicIcon
Creating Measure That Displays Text Value
Avatar
Zac Burke

New Member
Members

Power Pivot
Level 0
Forum Posts: 2
Member Since:
January 28, 2020
sp_UserOfflineSmall Offline
1
July 30, 2020 - 12:38 pm
sp_Permalink sp_Print

Hello, my name is Zac first time poster here. I took Mynda's PowerPivot class and it helped me get to where I am today! I am working on a capacity planning tool for my organization and I need help figuring out how to get a measure to display a text value.

In a nut shell I need help getting my row label value to be populated in a measure so I can perform calculations on it. In the image below you can see what my row labels are in my pivot table.

 

Capacity-Tool-Row-Label.jpgImage Enlarger

 

Below I have an example of my desired pivot table end result. The first measure I need to make illustrated by the *Measure* Host Name column is just an exact copy of the row label which is also host name. I have attempted to use a measure with this formula

=ConcatenateX(Host_Data,Host_Data[Host_Name],"",)

However; when I try and add this measure to the values section of my pivot table nothing happens. I think the ConcatenateX fuction I built makes logical sense, but I don't understand why I can't add it to my Pivot table values section when I drag it in there nothing happens. Do you think it is because I have two rows in the row section?

 

The second measure I need to capture is going to be the last digit of the host name which is generation number. I am pretty sure I can figure that out on my own with a simple trim function.

 

The third measure I need to make is going to be a measure that will produce a value depending on the generation number, in this instance you get a multiplier of 2 for generation 5 & 6 and a multiplier of 3 for generation 7 & 8. I might need some help figuring out the most efficient way to do this, but I need to get measure 1 and 2 built first.

Measure-End-Result-Example.jpgImage Enlarger

sp_PlupAttachments Attachments
  • sp_PlupImage Capacity-Tool-Row-Label.jpg (14 KB)
  • sp_PlupImage Measure-End-Result-Example.jpg (34 KB)
Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4443
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
2
July 30, 2020 - 8:50 pm
sp_Permalink sp_Print

Hi Zac,

Welcome to our forum! It's great to hear you're making use of your Power Pivot skills 🙂

Your formula looks like the last comma is in the wrong place:

=ConcatenateX(Host_Data,Host_Data[Host_Name],"",)

If you want the delimiter to be a comma then it should be:

=ConcatenateX(Host_Data,Host_Data[Host_Name],",")

In regards to your third measure, I'd use a dimension table to lookup the multiplier.

Mynda

Avatar
Zac Burke

New Member
Members

Power Pivot
Level 0
Forum Posts: 2
Member Since:
January 28, 2020
sp_UserOfflineSmall Offline
3
July 31, 2020 - 1:10 am
sp_Permalink sp_Print sp_EditHistory

Hey Mynda!! I had intended for there to be no delimiter because I will only ever have 1 value that I want produced. Even if I try your formula when I go to move the measure to the values section nothing happens. =ConcatenateX might not be the best formula for my goal. At the end of the day I just need a measure to produce for me the same text that is in my row column.  I have been playing with this all morning and I am still stumped.

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4443
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
4
July 31, 2020 - 9:34 am
sp_Permalink sp_Print

Hi Zac,

The delimiter argument is optional, so you could just leave it out. That said, if the purpose of adding this column is to detect what the last two digits are and then lookup the multiplier, then I would do this with a dim table. e.g. create another table with the following columns:

-Host name

-Last two digits of host name

-Multiplier

Then create a relationship between the dim and fact table so you can reference the multiplier in your DAX measure.

Mynda

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Chandler Davis, baber Tufail
Guest(s) 10
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 870
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
drsven
Annie Witbrod
wahab tunde
Cong Le Duc
Faisal Bashir
Ivica Cvetkovski
Blaine Cox
Shankar Srinivasan
riyepa fdgf
Hannah Cave
Forum Stats:
Groups: 3
Forums: 24
Topics: 6205
Posts: 27212

 

Member Stats:
Guest Posters: 49
Members: 31880
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.