Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
ykhebde
Regular Visitor

undefined Error while modifying Date hierarchy in a Matrix Visual

Feedback Type:
Frown (Error)

Timestamp:
2023-08-24T16:16:12.8906756Z

Local Time:
2023-08-24T21:46:12.8906756+05:30

Session ID:
dfd92123-8b5a-435d-8f67-63a33ff65fb9

Release:
May 2023

Product Version:
2.117.984.0 (23.05) (x64)

Stack Trace:
Javascript: TypeError
at DefaultDataViewMappingCompilerStrategy.createDataViewRoleItem (https://ms-pbi.pbi.microsoft.com/minerva/scripts/data.js:530:39)
at https://ms-pbi.pbi.microsoft.com/minerva/scripts/data.js:514:34
at arrayMap (https://ms-pbi.pbi.microsoft.com/minerva/scripts/powerbi.common.externals.js:26438:23)
at Function.map (https://ms-pbi.pbi.microsoft.com/minerva/scripts/powerbi.common.externals.js:35407:14)
at DefaultDataViewMappingCompilerStrategy.compileRole (https://ms-pbi.pbi.microsoft.com/minerva/scripts/data.js:512:28)
at DataViewMappingCompiler.compileRole (https://ms-pbi.pbi.microsoft.com/minerva/scripts/visuals.js:11177:38)
at DataViewMappingCompiler.compileFor (https://ms-pbi.pbi.microsoft.com/minerva/scripts/visuals.js:11163:34)
at DataViewMappingCompiler.compileForWithReduction (https://ms-pbi.pbi.microsoft.com/minerva/scripts/visuals.js:11157:37)
at DataViewMappingCompiler.compileMatrix (https://ms-pbi.pbi.microsoft.com/minerva/scripts/visuals.js:11097:59)
at DataViewMappingCompiler.compileMapping (https://ms-pbi.pbi.microsoft.com/minerva/scripts/visuals.js:11057:66)

PowerBINonFatalError:
{"AppName":"PBIDesktop","AppVersion":"2.117.984.0","ModuleName":"https://ms-pbi.pbi.microsoft.com/minerva/scripts/data.js","Component":"DefaultDataViewMappingCompilerStrategy","Error":"TypeError","MethodDef":"createDataViewRoleItem","ErrorOffset":"530:39"}

OS Version:
Microsoft Windows NT 10.0.19045.0 (x64 en-GB)

CLR Version:
4.8 or later [Release Number = 528372]

Peak Virtual Memory:
71.2 GB

Private Memory:
1.07 GB

Peak Working Set:
1.16 GB

IE Version:
11.789.19041.0

User ID:
198484e5-df62-4547-bfda-4de00842ab5f

Workbook Package Info:
1* - en-IN, Query Groups: 0, fastCombine: Disabled, runBackgroundAnalysis: True.

Telemetry Enabled:
True

Model Default Mode:
Import

Model Version:
PowerBI_V3

Enabled Preview Features:
PBI_shapeMapVisualEnabled
PBI_qnaLiveConnect
PBI_b2bExternalDatasetSharing
PBI_enhancedTooltips
PBI_enableWebView2
PQ_WebView2Connector
PBI_sparklines
PBI_scorecardVisual
PBI_NlToDax
PBI_fieldParametersSuperSwitch
PBI_horizontalFusion
PBI_angularRls
PBI_onObject
PBI_setLabelOnExportPdf
PBI_dynamicFormatString
PBI_oneDriveSave
PBI_oneDriveShare

Disabled Preview Features:
PBI_SpanishLinguisticsEnabled

Disabled DirectQuery Options:
TreatHanaAsRelationalSource

Cloud:
GlobalCloud

Recent Actions:
SavePropertyPane, SavePropertyPane, SavePropertyPane, SavePropertyPane, ApplyBookmark, ApplyBookmark, ApplyBookmark, ApplyBookmark, ApplyBookmark, ApplyBookmark, ApplyBookmark, SetVariation, RemoveFieldFromRole, RemoveFieldFromRole, RemoveFieldFromRole

DPI Scale:
100%

Supported Services:
Power BI

1 REPLY 1
TheoC
Super User
Super User

Hi @ykhebde

 

The issues is likely stemming from the fact that the field you are using is DateTimeTimezone and not standard DateTime.  In PowerQuery, you need to ensure this is converted to DateTime prior to bringing it into Canvas.

 

Similarly, you need to ensure that if it's linked to a Date table, then the field should only be Date, not DateTime.

 

This should fix the error because currently it looks like Power BI is looking for a DateTime rather than DateTimeTimezone and / or it is looking for a Date column, not a DateTime column.

 

The fix, as mentioned, can be done in Power Query or, alternatively, in Canvas view by changing the column type to Date instead of DateTime.

 

Hope this helps.

 

Theo

 

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.