code: function(sName) {
  			if (this._oDimensionSet[sName]) { // the easy case
  				return this._oDimensionSet[sName];
  			}
  
  			for ( var sDimensionName in this._oDimensionSet) {
  				var oDimension = this._oDimensionSet[sDimensionName];
  				var oTextProperty = oDimension.getTextProperty();
  				if (oTextProperty && oTextProperty.name == sName) {
  					return oDimension;
  				}
  				if (oDimension.findAttributeByName(sName)) {
  					return oDimension;
  				}
  			}
  			return null;
  		}
docs: Find dimension by property name
  
  @param {string}
  sName Property name
  @returns {sap.ui.model.analytics.odata4analytics.Dimension} The dimension object to
  which the given property name is related, because the property
  holds the dimension key, its text, or is an attribute of this
  dimension. If no such dimension exists, null is returned.
  @public
  @function
  @name sap.ui.model.analytics.odata4analytics.QueryResult#findDimensionByPropertyName