Compare commits

..

1 Commits

7 changed files with 35 additions and 52 deletions

View File

@ -1,4 +1,6 @@
# Assign default period to date-pickers
You can assign default period by messures, just use DAX!
# Version 1.0.1
1. Fix bug: the filter doesn't work after rename the field on it
# Known issues
* Can't edit date in PowerBiApp(only on some Android devices)
* Can't edit date in PowerBiApp(only on some Android devices)

6
package-lock.json generated
View File

@ -1498,9 +1498,9 @@
}
},
"acorn": {
"version": "6.4.1",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-6.4.1.tgz",
"integrity": "sha512-ZVA9k326Nwrj3Cj9jlh3wGFutC2ZornPNARZwsNYqQYgN0EsV2d53w5RN/co65Ohn4sUAUtb1rSUAOD6XN9idA==",
"version": "6.4.0",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-6.4.0.tgz",
"integrity": "sha512-gac8OEcQ2Li1dxIEWGZzsp2BitJxwkwcOm0zHAJLcPJaVvm58FRnk6RkuLRpU1EujipU2ZFODv2P9DLMfnV8mw==",
"dev": true
},
"acorn-walk": {

View File

@ -1,12 +1,12 @@
{
"visual": {
"name": "Period Slice - Syinpo",
"displayName": "Period Slicer - Syinpo",
"name": "PeriodSlice-Syinpo",
"displayName": "PeriodSlicer-Syinpo",
"guid": "SyinpoPeriodSlice9771124744984CE8959D0304EEAB35E8",
"visualClassName": "Visual",
"version": "1.0.0",
"version": "1.0.1",
"description": "A period slicer, which can be initialized by messures.",
"supportUrl": "https://github.com/mujiannan/PeriodSlicer-Syinpo/issues",
"supportUrl": "http://www.syinpo.com",
"gitHubUrl": "https://github.com/mujiannan/PeriodSlicer-Syinpo"
},
"apiVersion": "2.6.0",

View File

@ -153,9 +153,12 @@ export class Visual implements IVisual {
//determine period from dateSelectors
let period: IPeriod = this.periodSelectorManager.period;
let target: models.IFilterColumnTarget;
let splitPosition:number=this.category.source.queryName.indexOf('.');
let tableName:string=this.category.source.queryName.substr(0, splitPosition);
let fieldName:string=this.category.source.queryName.substr(splitPosition+1,this.category.source.queryName.length-splitPosition-1);
target = {
table: this.category.source.queryName.substr(0, this.category.source.queryName.indexOf('.')), // table
column: this.category.source.displayName // col1
table: tableName, // table
column: fieldName // col1
};
//filter

0
support.md Normal file
View File

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long