Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Yersteday we started to have an issue where we can't connect or update the model anymore.
We solved when we removed a KPI that works before. Until 2012-12-15 03:00 am (GMT-3:00) it works fine.
We get the following error on report attached to dataset:
Underlying Error: Exception while parsing CSDL to create Conceptual Schema. Model ID=1725844
Activity ID: 120b228d-c4ca-4444-9c50-152ee2c9e708
Correlation ID: ee9b396a-ab91-6008-004c-6f1a7ab596e7
Request ID: e705d683-15ee-944d-ddf0-d62ce8548ea4
Time: Fri Dec 16 2022 08:36:29 GMT-0300 (Brasilia Standard Time)
Service version: 13.0.19635.59
Client version: 2212.1.11454-train
Cluster URI: https://wabi-brazil-south-b-primary-redirect.analysis.windows.net/
And this when we tried to connect to dataset from Power BI Desktop:
The '' string cannot be converted to the unsignedInt type
This is the script to create the KPI:
{
"create": {
"parentObject": {
"database": "dc5f3ef8-ffd1-4466-a493-f403e837cd89"
},
"table": {
"name": "KPIs",
"lineageTag": "adfa28ed-4ba7-43ba-91c2-ece004566ef1",
"partitions": [
{
"name": "KPIs-2e7578b1-4d92-46ae-87f0-d1860017cee5",
"mode": "import",
"source": {
"type": "m",
"expression": [
"let",
" Fonte = Table.FromList({\"\"}),",
" #\"Removed Columns\" = Table.RemoveColumns(Fonte,{\"Column1\"})",
"in",
" #\"Removed Columns\""
]
}
}
],
"measures": [
{
"name": "Sellout.",
"expression": "[Sellout]",
"formatString": "#,0.00",
"displayFolder": "Sellout",
"lineageTag": "2dee783e-ac1c-4ffa-a901-5eea38f64c3d",
"kpi": {
"targetExpression": "[Meta Geral]",
"targetFormatString": "#,##0.00",
"statusGraphic": "Three Circles Colored",
"statusDescription": "Comparação do período sobre a meta. Faixas: < meta, neutro, >= meta.",
"statusExpression": [
"VAR _value = [Sellout]",
"VAR _target = [Meta Geral]",
"RETURN",
" IF (",
" NOT ISBLANK ( _value ) && NOT ISBLANK ( _target ),",
" SWITCH (",
" TRUE,",
" //_value > _target, 1,",
" _value < _target, -1,",
" 1",
" )",
" )"
],
"trendGraphic": "Status Arrow - Ascending",
"trendDescription": "Comparação do período sobre o anterior. Faixas: < 25%, < 5%, neutro, > 5%, >25%.",
"trendExpression": [
"VAR _curr = [Sellout]",
"VAR _prev =",
" SWITCH (",
" TRUE,",
" ISINSCOPE ( 'dim_tempo'[DescricaoMesAno] ) || ISINSCOPE ( 'dim_tempo'[DescricaoMes] ) || ISINSCOPE ( 'dim_tempo'[DescricaoMesABR] ) || ISINSCOPE ( 'dim_tempo'[IdAnoMes] ) || ISINSCOPE ( 'dim_tempo'[IdMes] ),",
" CALCULATE (",
" [Sellout],",
" DATEADD ( 'dim_tempo'[Data], -1, MONTH )",
" ),",
" ISINSCOPE ( 'dim_tempo'[DescricaoTrimestre] ) || ISINSCOPE ( 'dim_tempo'[IdTrimestre] ),",
" CALCULATE (",
" [Sellout],",
" DATEADD ( 'dim_tempo'[Data], -1, QUARTER )",
" ),",
" ISINSCOPE ( 'dim_tempo'[DescricaoSemestre] ) || ISINSCOPE ( 'dim_tempo'[IdSemestre] ),",
" CALCULATE (",
" [Sellout],",
" DATEADD ( 'dim_tempo'[Data], -2, QUARTER )",
" ),",
" ISINSCOPE ( 'dim_tempo'[IdAno] ),",
" CALCULATE (",
" [Sellout],",
" DATEADD ( 'dim_tempo'[Data], -1, YEAR )",
" )",
" )",
"RETURN",
" IF (",
" NOT ISBLANK ( _curr ) && NOT ISBLANK ( _prev ),",
" VAR _perc = DIVIDE ( _curr, _prev ) - 1",
" RETURN",
" SWITCH (",
" TRUE,",
" _perc < -0.25, -2,",
" _perc < -0.05, -1,",
" _perc > 0.25, 2,",
" _perc > 0.05, 1,",
" 0",
" )",
" )",
" "
]
},
"annotations": [
{
"name": "PBI_ChangedProperties",
"value": "[\"FormatString\"]"
}
]
}
],
"annotations": [
{
"name": "PBI_ResultType",
"value": "Table"
}
]
}
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.