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
//---------------------------------------------- Nice Numberformat simplified --------------------------------------------- | |
// does work with count in KPI object (have seen several versions from Qlik which haven't worked) | |
Set vF_NiceNumberSimple = | |
If(Fabs($1) > 1e9, Num($1/1e9+1e-13, '#$(ThousandSep)##0$(DecimalSep)00') | |
,If(Fabs($1) > 1e8, Num($1/1e6+1e-13, '##0$(DecimalSep)0') | |
,If(Fabs($1) > 1e6, Num($1/1e6+1e-13, '##0$(DecimalSep)00') | |
,If(Fabs($1) > 1e5, Num($1/1e3+1e-13,'##0$(DecimalSep)0') | |
,If(Fabs($1) > 1e3, Num($1/1e3+1e-13, '##0$(DecimalSep)00') | |
, $1, | |
))))) & |
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
@echo off | |
REM wblGen.bat - v 1.0.0 - 2015-10-09 | |
REM Description: | |
REM A simple batch file that automatically generates the wblfolder.wbl for your Qlik Sense visualization extension. | |
REM | |
REM Author: Nate Untiedt - Analytics8 - [email protected] | |
REM | |
REM Credit to: http://stackoverflow.com/a/8387078 | |
setlocal EnableDelayedExpansion |
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') } | |
}; |
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 qlikNumberFromDate(d) { | |
return d.getTime() / 86400000 + 25569; | |
} |
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( ["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
// 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
// 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
// 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
// get amount of Dimensions | |
var nDimensions = this.Data.Rows[0].filter(function(col){return !(col.color == undefined);}).length; |