src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js
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;
		}
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;
		}
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 ; }
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
Find dimension by property name