Home

Custom sorting a slicer does not work

%3CLINGO-SUB%20id%3D%22lingo-sub-400563%22%20slang%3D%22en-US%22%3ECustom%20sorting%20a%20slicer%20does%20not%20work%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-400563%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20all%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20some%20strange%20reason%2C%20I%20suddenly%20cannot%20sort%20a%20slicer%20using%20a%20custom%20list.%20I%20create%20the%20list%2C%20double%20click%20on%20it%20with%20the%20slicer%20selected-%20nothing.%20I%20delete%20the%20slicer%2C%20create%20the%20list%2C%20create%20the%20slicer%20again-%20nothing.%20This%20used%20to%20work%20fairly%20recently%20and%20I%20cannot%20understand%20what%20the%20issue%20is.%20Has%20anyone%20encountered%20something%20similar%20and%20how%20did%20you%20fix%20it%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-400563%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-535158%22%20slang%3D%22en-US%22%3ERe%3A%20Custom%20sorting%20a%20slicer%20does%20not%20work%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-535158%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F313240%22%20target%3D%22_blank%22%3E%40dzhogov%3C%2FA%3E%26nbsp%3BI%20am%20having%20a%20similar%20issue%20too.%20I%20have%20created%20a%20Data%20Model%20for%20my%20data%20and%20am%20using%20a%20Slicer%20for%20Months.%20But%20the%20Months%20are%20not%20being%20displayed%20in%20a%20monthly%20sorting%20manner%20(Jan%2C%20Feb%20..%20Dec).%20I%20have%20tried%20default%20sorting%2C%20created%20custom%20sorts%20but%20nothing%20works.%20Looks%20like%20when%20using%20the%20Data%20Model%2C%20there%20are%20issues%20when%20using%20sorting.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-535206%22%20slang%3D%22en-US%22%3ERe%3A%20Custom%20sorting%20a%20slicer%20does%20not%20work%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-535206%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F335003%22%20target%3D%22_blank%22%3E%40gaujla%3C%2FA%3E%26nbsp%3B%2C%20you%20shall%20define%20sorting%20order.%20Add%20one%20more%20column%20with%20month%20numbers%20and%20select%20for%20Months%20column%20Sort%20By%20these%20numbers.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20876px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F112281i6E0CB379E99BE3CD%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22image.png%22%20title%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-535376%22%20slang%3D%22en-US%22%3ERe%3A%20Custom%20sorting%20a%20slicer%20does%20not%20work%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-535376%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F521%22%20target%3D%22_blank%22%3E%40Sergei%20Baklan%3C%2FA%3E%26nbsp%3BThank%20you%20very%20much%20Sir!%20that%20worked%20beautifully.%20I%20was%20using%20the%20same%20technique%20but%20at%20the%20wrong%20location.%20I%20was%20defining%20the%20MONTHNUM%20in%20my%20original%20Data%20tab%20but%20it%20wasn't%20working.%20Slicer%20kept%20on%20sorting%20my%20data%20using%20the%20original%20date%20(source%20data%20order).%20But%20as%20soon%20as%20I%20created%20the%20MONTHNUM%20column%20in%20my%20Data%20Model%2C%20and%20used%20the%20sort%20MONTH%20by%20MONTHNUM%2C%20it%20worked%20like%20magic.%20Thanks%20a%20lot.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnother%20question%2C%20my%20original%20Data%20doesn't%20have%20any%20%22blank%22%20rows%2Fcolumn%2Frecords%2C%20but%20the%20Pivot%20Table%2FSlicer%20keeps%20on%20thinking%20there%20is%20%22blank%22%20data.%20I%20have%20unchecked%20the%20various%20options%20to%20hide%20or%20not%20show%20blank%20data%20but%20isn't%20working.%20Any%20help%20would%20be%20much%20appreciated.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-535573%22%20slang%3D%22en-US%22%3ERe%3A%20Custom%20sorting%20a%20slicer%20does%20not%20work%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-535573%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F335003%22%20target%3D%22_blank%22%3E%40gaujla%3C%2FA%3E%26nbsp%3B%2C%20it%20depends%20on%20where%20do%20you%20have%20such%20blanks%2C%20could%20you%20give%20bit%20more%20details%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-535912%22%20slang%3D%22en-US%22%3ERe%3A%20Custom%20sorting%20a%20slicer%20does%20not%20work%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-535912%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F521%22%20target%3D%22_blank%22%3E%40Sergei%20Baklan%3C%2FA%3E%26nbsp%3B%22blanks%22%20as%20a%20field%20is%20appearing%20in%20the%20Pivot%20Table%20options.%20It%20appears%20on%20all%20Column%20Headings.%20I%20don't%20have%20any%20blank%20rows%20of%20data%20or%20blank%20columns%20in%20my%20data.%20Also%2C%20I%20have%20a%20defined%20table%20as%20data%20source%20which%20is%20supposed%20to%20be%20expandable%20as%20time%20goes%20on%20and%20users%20make%20more%20entries%20on%20a%20daily%20basis.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-535957%22%20slang%3D%22en-US%22%3ERe%3A%20Custom%20sorting%20a%20slicer%20does%20not%20work%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-535957%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F521%22%20target%3D%22_blank%22%3E%40Sergei%20Baklan%3C%2FA%3E%26nbsp%3BI%20meant%20%22blank%22%20as%20a%20record%20in%20appearing%20in%20Months%2C%20Quarters%2C%20or%20whichever%20Field%20I%20use%20for%20my%20Pivot%20Table.%20I%20don't%20have%20any%20%22blank%22%20records%2Fcolumns%2Fcells%2Frows%20in%20my%20data.%20Although%20the%20source%20table%20is%20dynamic%20not%20static%2C%20meaning%2C%20my%20source%20table%20is%20%24A%3AW%24%20and%20not%20%24A1%3A%24W1048576%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-536046%22%20slang%3D%22en-US%22%3ERe%3A%20Custom%20sorting%20a%20slicer%20does%20not%20work%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-536046%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F335273%22%20target%3D%22_blank%22%3E%40gs_aujla%3C%2FA%3E%26nbsp%3B%2C%20if%20your%20source%20table%20is%20till%20end%20of%20the%20sheet%20you%20shall%20have%20blank%20rows.%20However%2C%20with%20correct%20aggregation%20PivotTable%20shall%20ignore%20them.%20Try%20to%20select%20all%20rows%20within%20the%20range%20after%20last%20row%20with%20data%2C%26nbsp%3B%20Home-%26gt%3BClear-%26gt%3BClear%20All%2C%20after%20that%20Save%20file%20and%20refresh%20your%20PivotTable.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAs%20for%20the%20slicer%20you%20may%20in%20slicer%20setting%20Hide%20items%20with%20no%20data.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-536147%22%20slang%3D%22en-US%22%3ERe%3A%20Custom%20sorting%20a%20slicer%20does%20not%20work%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-536147%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F521%22%20target%3D%22_blank%22%3E%40Sergei%20Baklan%3C%2FA%3E%26nbsp%3BHello%20Sir%2C%20tried%20doing%20that%2C%20doesn't%20work.%20I%20tried%20both%20Clear%26gt%3BClear%20All%20and%20Clear%26gt%3BContents%20and%20also%20Delete%20All%20Rows%20after%20my%20last%20record%2C%20it%20doesn't%20work.%20Just%20to%20mention%2C%20when%20I%20was%20created%20the%20same%20Pivot%20Table%20earlier%20without%20using%20the%20Data%20Model%2C%20the%20%22blank%22%20option%20wasn't%20there%20or%20I%20was%20able%20to%20ignore%20it%20completely%20and%20the%20Pivot%20Table%20options%20would%20remember%20it.%20It's%20only%20after%20I%20created%20my%20Pivot%20Table%20using%20the%20Data%20Model%20option%2C%20that%20this%20issue%20has%20occurred.%20I%20need%20the%20Data%20Model%20option%20because%20I%20created%20my%20own%20Measure%20that%20I%20need%20to%20have%20a%20calculated%20field%20that%20gives%20the%20result%20in%20Text%20form%20and%20not%20Numerical%2FMathematical%20form.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-536542%22%20slang%3D%22en-US%22%3ERe%3A%20Custom%20sorting%20a%20slicer%20does%20not%20work%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-536542%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F335273%22%20target%3D%22_blank%22%3E%40gs_aujla%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3ESo%2C%20you%20have%20no%20empty%20string%20cells.%20That%20is%20strange%20if%20you%20have%20EXACTLY%20the%20same%20Pivot%20table%20with%20and%20without%20data%20model%20with%20different%20results%20here.%20Perhaps%20relationships%20are%20different%2C%20blank%20row%20label%20could%20appear%20if%20no%20matching%20rows%20in%20related%20(child)%20table.%20Something%20with%20aggregation.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EUnfortunately%20I'm%20not%20so%20deep%20in%20DAX%20to%20say%20something%20more%20concrete%20without%20playing%20with%20file.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-549577%22%20slang%3D%22en-US%22%3ERe%3A%20Custom%20sorting%20a%20slicer%20does%20not%20work%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-549577%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F521%22%20target%3D%22_blank%22%3E%40Sergei%20Baklan%3C%2FA%3EHi%20..%20I%20am%20creating%20a%20new%20dashboard%20with%20a%20new%20Pivot%20Table%20and%20it's%20own%20Data%20Model%20to%20use%20DAX.%20But%20my%20new%20Excel%20worksheet%20keeps%20on%20calling%20the%20old%20Data%20Model%20for%20a%20different%20Excel%20workbook.%20Can't%20I%20have%20multiple%20Data%20Models%20for%20different%20worksheets%20in%20my%20domain%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-549600%22%20slang%3D%22en-US%22%3ERe%3A%20Custom%20sorting%20a%20slicer%20does%20not%20work%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-549600%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F521%22%20target%3D%22_blank%22%3E%40Sergei%20Baklan%3C%2FA%3E%26nbsp%3BAlso%2C%20one%20of%20my%20fields%20in%20my%20source%20table%20is%20set%20to%20Number%20but%20the%20Pivot%20Table%20with%20Data%20Model%20is%20not%20able%20to%20use%20Sum%20function%20to%20calculate%20that%20field.%20But%20when%20I%20use%20a%20normal%20Pivot%20Table%20without%20Data%20Model%2C%20it%20is%20able%20to%20do%20that.%20Not%20sure%20why%20is%20that%20so.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHelp%20Please!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-549662%22%20slang%3D%22en-US%22%3ERe%3A%20Custom%20sorting%20a%20slicer%20does%20not%20work%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-549662%22%20slang%3D%22en-US%22%3E%3CP%3E%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3CBR%20%2F%3EError%20Message%3A%3CBR%20%2F%3E%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3C%2FP%3E%3CP%3EThe%20following%20system%20error%20occurred%3A%20Type%20mismatch.%3CBR%20%2F%3EDatatype%20conversion%20failed%20for%20%5BTable%3A%20'PNWTable'%2C%20Column%3A%20'COMPLIANCE-Y'%2C%20Value%3A%20''%5D.%3C%2FP%3E%3CP%3E----------------------------%3CBR%20%2F%3EThe%20following%20system%20error%20occurred%3A%20Type%20mismatch.%3CBR%20%2F%3EDatatype%20conversion%20failed%20for%20%5BTable%3A%20'PNWTable'%2C%20Column%3A%20'COMPLIANCE-Y'%2C%20Value%3A%20''%5D.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3CBR%20%2F%3ECall%20Stack%3A%3CBR%20%2F%3E%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3C%2FP%3E%3CP%3Eat%20Microsoft.AnalysisServices.BackEnd.DataModelingSandbox.ProcessResults(XmlaResultCollection%20results)%3CBR%20%2F%3Eat%20Microsoft.AnalysisServices.BackEnd.DataModelingSandbox.ExecuteCaptureLogAndProcessResults(OperationType%20type%2C%20Boolean%20cancellable%2C%20Boolean%20raw%2C%20Boolean%20raiseEvents)%3CBR%20%2F%3Eat%20Microsoft.AnalysisServices.BackEnd.DataModelingSandboxAmo.DoExecuteEngineCode(OperationType%20type%2C%20OperationCancellability%20cancellable%2C%20AMOCode%20code%2C%20Boolean%20raiseEvents)%3CBR%20%2F%3Eat%20Microsoft.AnalysisServices.BackEnd.DataModelingSandbox.ExecuteEngineCode(OperationType%20type%2C%20OperationCancellability%20cancellable%2C%20AMOCode%20code%2C%20Boolean%20raiseEvents)%3CBR%20%2F%3Eat%20Microsoft.AnalysisServices.BackEnd.SandboxTransaction.CommitInternal(Boolean%20finalCommit)%3CBR%20%2F%3E----------------------------%3CBR%20%2F%3Eat%20Microsoft.AnalysisServices.BackEnd.SandboxTransaction.CommitInternal(Boolean%20finalCommit)%3CBR%20%2F%3Eat%20Microsoft.AnalysisServices.Common.SandboxEditor.DataTypeSelectionChanged(String%20newSelectedString%2C%20TableWidgetGridControl%20grid%2C%20List%601%20selectedColumns)%3C%2FP%3E%3CP%3E%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAbove%20is%20the%20error%20I%20am%20getting%20on%20my%20Power%20Pivot%20field.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-550122%22%20slang%3D%22en-US%22%3ERe%3A%20Custom%20sorting%20a%20slicer%20does%20not%20work%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-550122%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F335273%22%20target%3D%22_blank%22%3E%40gs_aujla%3C%2FA%3E%26nbsp%3B%2C%20perhaps%20you%20have%20some%20empty%20cells%20(not%20blank%20but%20cells%20with%20empty%20string%20%22%22).%20SUM%20within%20Excel%20sheet%2C%20includes%20PivotTable%20aggregation%2C%20ignores%20any%20texts.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EData%20model%20returns%20conversion%20error%20in%20such%20case%2C%20SUM%20and%20like%20here%20don't%20work%20with%20strings.%20All%20shall%20be%20numbers%20or%20blanks.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-550132%22%20slang%3D%22en-US%22%3ERe%3A%20Custom%20sorting%20a%20slicer%20does%20not%20work%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-550132%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F521%22%20target%3D%22_blank%22%3E%40Sergei%20Baklan%3C%2FA%3E%26nbsp%3BYes%20looks%20like%20that%20is%20the%20issue.%20Once%20I%20delete%20empty%20rows%20at%20the%20bottom%2C%20I%20am%20not%20getting%20the%20issue.%20Although%20I%20have%20one%20issue%2C%20how%20can%20I%20make%20my%20source%20data%20table%20dynamic%20so%20as%20the%20user%20can%20just%20start%20typing%20in%20the%20input%20values%20after%20the%20last%20record%20without%20having%20to%20%22tab%22%20through%20the%20last%20column%20of%20the%20last%20existing%20record%20or%20without%20the%20need%20to%20manually%20pull%20the%20dynamic%20table%20ribbon%20column%20on%20the%20last%20record.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-550360%22%20slang%3D%22en-US%22%3ERe%3A%20Custom%20sorting%20a%20slicer%20does%20not%20work%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-550360%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F335273%22%20target%3D%22_blank%22%3E%40gs_aujla%3C%2FA%3E%26nbsp%3B%2C%20but%20table%20shall%20autoexpand%20if%20you%20type%20in%20any%20cell%20of%20the%20next%20row%20and%20after%20that%20Enter%2C%20or%20Arrow%20Left%2FRight%20(other%20words%20change%20focused%20cell).%20Tab%20in%20right%20cell%20of%20the%20last%20row%20is%20not%20necessary.%3C%2FP%3E%3C%2FLINGO-BODY%3E
dzhogov
Occasional Contributor

Hello all,

 

For some strange reason, I suddenly cannot sort a slicer using a custom list. I create the list, double click on it with the slicer selected- nothing. I delete the slicer, create the list, create the slicer again- nothing. This used to work fairly recently and I cannot understand what the issue is. Has anyone encountered something similar and how did you fix it?

 

Regards!

15 Replies

@dzhogov I am having a similar issue too. I have created a Data Model for my data and am using a Slicer for Months. But the Months are not being displayed in a monthly sorting manner (Jan, Feb .. Dec). I have tried default sorting, created custom sorts but nothing works. Looks like when using the Data Model, there are issues when using sorting.

@gaujla , you shall define sorting order. Add one more column with month numbers and select for Months column Sort By these numbers.

image.png

 

@Sergei Baklan Thank you very much Sir! that worked beautifully. I was using the same technique but at the wrong location. I was defining the MONTHNUM in my original Data tab but it wasn't working. Slicer kept on sorting my data using the original date (source data order). But as soon as I created the MONTHNUM column in my Data Model, and used the sort MONTH by MONTHNUM, it worked like magic. Thanks a lot.

 

Another question, my original Data doesn't have any "blank" rows/column/records, but the Pivot Table/Slicer keeps on thinking there is "blank" data. I have unchecked the various options to hide or not show blank data but isn't working. Any help would be much appreciated. 

@gaujla , it depends on where do you have such blanks, could you give bit more details?

@Sergei Baklan "blanks" as a field is appearing in the Pivot Table options. It appears on all Column Headings. I don't have any blank rows of data or blank columns in my data. Also, I have a defined table as data source which is supposed to be expandable as time goes on and users make more entries on a daily basis.

@Sergei Baklan I meant "blank" as a record in appearing in Months, Quarters, or whichever Field I use for my Pivot Table. I don't have any "blank" records/columns/cells/rows in my data. Although the source table is dynamic not static, meaning, my source table is $A:W$ and not $A1:$W1048576

@gs_aujla , if your source table is till end of the sheet you shall have blank rows. However, with correct aggregation PivotTable shall ignore them. Try to select all rows within the range after last row with data,  Home->Clear->Clear All, after that Save file and refresh your PivotTable.

 

As for the slicer you may in slicer setting Hide items with no data.

@Sergei Baklan Hello Sir, tried doing that, doesn't work. I tried both Clear>Clear All and Clear>Contents and also Delete All Rows after my last record, it doesn't work. Just to mention, when I was created the same Pivot Table earlier without using the Data Model, the "blank" option wasn't there or I was able to ignore it completely and the Pivot Table options would remember it. It's only after I created my Pivot Table using the Data Model option, that this issue has occurred. I need the Data Model option because I created my own Measure that I need to have a calculated field that gives the result in Text form and not Numerical/Mathematical form.

@gs_aujla ,

So, you have no empty string cells. That is strange if you have EXACTLY the same Pivot table with and without data model with different results here. Perhaps relationships are different, blank row label could appear if no matching rows in related (child) table. Something with aggregation.

 

Unfortunately I'm not so deep in DAX to say something more concrete without playing with file.

@Sergei BaklanHi .. I am creating a new dashboard with a new Pivot Table and it's own Data Model to use DAX. But my new Excel worksheet keeps on calling the old Data Model for a different Excel workbook. Can't I have multiple Data Models for different worksheets in my domain?

@Sergei Baklan Also, one of my fields in my source table is set to Number but the Pivot Table with Data Model is not able to use Sum function to calculate that field. But when I use a normal Pivot Table without Data Model, it is able to do that. Not sure why is that so.

 

Help Please!

============================
Error Message:
============================

The following system error occurred: Type mismatch.
Datatype conversion failed for [Table: 'PNWTable', Column: 'COMPLIANCE-Y', Value: ''].

----------------------------
The following system error occurred: Type mismatch.
Datatype conversion failed for [Table: 'PNWTable', Column: 'COMPLIANCE-Y', Value: ''].


============================
Call Stack:
============================

at Microsoft.AnalysisServices.BackEnd.DataModelingSandbox.ProcessResults(XmlaResultCollection results)
at Microsoft.AnalysisServices.BackEnd.DataModelingSandbox.ExecuteCaptureLogAndProcessResults(OperationType type, Boolean cancellable, Boolean raw, Boolean raiseEvents)
at Microsoft.AnalysisServices.BackEnd.DataModelingSandboxAmo.DoExecuteEngineCode(OperationType type, OperationCancellability cancellable, AMOCode code, Boolean raiseEvents)
at Microsoft.AnalysisServices.BackEnd.DataModelingSandbox.ExecuteEngineCode(OperationType type, OperationCancellability cancellable, AMOCode code, Boolean raiseEvents)
at Microsoft.AnalysisServices.BackEnd.SandboxTransaction.CommitInternal(Boolean finalCommit)
----------------------------
at Microsoft.AnalysisServices.BackEnd.SandboxTransaction.CommitInternal(Boolean finalCommit)
at Microsoft.AnalysisServices.Common.SandboxEditor.DataTypeSelectionChanged(String newSelectedString, TableWidgetGridControl grid, List`1 selectedColumns)

============================

 

 

Above is the error I am getting on my Power Pivot field.

@gs_aujla , perhaps you have some empty cells (not blank but cells with empty string ""). SUM within Excel sheet, includes PivotTable aggregation, ignores any texts. 

 

Data model returns conversion error in such case, SUM and like here don't work with strings. All shall be numbers or blanks.

@Sergei Baklan Yes looks like that is the issue. Once I delete empty rows at the bottom, I am not getting the issue. Although I have one issue, how can I make my source data table dynamic so as the user can just start typing in the input values after the last record without having to "tab" through the last column of the last existing record or without the need to manually pull the dynamic table ribbon column on the last record.

@gs_aujla , but table shall autoexpand if you type in any cell of the next row and after that Enter, or Arrow Left/Right (other words change focused cell). Tab in right cell of the last row is not necessary.

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
22 Replies
flashing a white screen while open new tab
cntvertex in Discussions on
13 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies