This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=If(Value > 1E6, Round(Value/1E6, 1) & 'M', | |
If(Value > 1E3, Round(Value/1E3, 1) & 'k', | |
Value)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Load * Inline " | |
String | |
Abc | |
CDE | |
[c4] | |
"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Slow Load, not qvd optimized: | |
Bookings: | |
LOAD * From Bookings.qvd (qvd) | |
Where ID>0; // ..or with other condition: Not IsNull(ID) | |
*/ | |
// qvd optimized | |
ExistingID: | |
LOAD DISTINCT ID From Bookings.qvd (qvd); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// get amount of Dimensions | |
var nDimensions = this.Data.Rows[0].filter(function(col){return !(col.color == undefined);}).length; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Baskets order by Frequency: | |
Concat(DISTINCT Product, ',', -Aggr(NODISTINCT Count(Product), Product)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// can be used in scatter chart to have persistend color for dimensions and nice opacity for overlapping bubbles: | |
=argb(180, | |
subfield(textbetween(color(RowNo()),'(',')'),',',1), | |
subfield(textbetween(color(RowNo()),'(',')'),',',2), | |
subfield(textbetween(color(RowNo()),'(',')'),',',3)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// third expression: | |
dual( sum(Volume), sqrt( sum(Volume) ) ) | |
// or | |
dual( sum(Betrag), pow( sum(Betrag), 0.7 ) ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define( ["require"], function ( localRequire ) { | |
var path = localRequire.toUrl( "extensions/d3-vis-library/d3-vis-library.css" ); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
(function foo(node) { | |
if (node && node.$id) { | |
if (node.$$childHead) foo(node.$$childHead); | |
if (node.$$nextSibling) foo(node.$$nextSibling); | |
if (node.model && node.model.layout) node.model.layout.title = node.model.id; | |
} | |
})(qvangularGlobal.$rootScope); | |
$('*').css('-webkit-user-select', 'all'); | |
pubsub.publish('/resize/end') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define(['d3'], function (d3) { | |
const ANIMATION_DURATION = 300; | |
var viz = { | |
x: d3.scale.ordinal(), | |
y: d3.scale.linear(), | |
xAxis: function () { return d3.svg.axis().scale(viz.x).orient('bottom') }, | |
yAxis: function () { return d3.svg.axis().scale(viz.y).orient('left') } | |
}; |