diff --git a/ReadMe.md b/ReadMe.md index 5c307e7..33917b4 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -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) \ No newline at end of file +* Can't edit date in PowerBiApp(only on some Android devices) diff --git a/pbiviz.json b/pbiviz.json index 85c1308..6a5b64a 100644 --- a/pbiviz.json +++ b/pbiviz.json @@ -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", diff --git a/src/visual.ts b/src/visual.ts index 1005332..9be29a8 100644 --- a/src/visual.ts +++ b/src/visual.ts @@ -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 diff --git a/support.md b/support.md new file mode 100644 index 0000000..e69de29 diff --git a/webpack.statistics.dev.html b/webpack.statistics.dev.html index c06ee35..206278d 100644 --- a/webpack.statistics.dev.html +++ b/webpack.statistics.dev.html @@ -3,8 +3,12 @@ - Webpack Bundle Analyzer + Webpack Bundle Analyzer [26 Apr 2020 at 22:56] + + @@ -56,9 +46,8 @@
diff --git a/webpack.statistics.prod.html b/webpack.statistics.prod.html index 3a58626..89f77ff 100644 --- a/webpack.statistics.prod.html +++ b/webpack.statistics.prod.html @@ -3,8 +3,12 @@ - Webpack Bundle Analyzer + Webpack Bundle Analyzer [26 Apr 2020 at 22:55] + + @@ -56,9 +46,8 @@