Quantcast
Channel: All Developer posts
Viewing all 48084 articles
Browse latest View live

MongoDB Custom Connector Issue with DirectQuery - Failed to Convert BIGINT to INTEGER

$
0
0

I am setting up a DirectQuery connection from my local MongoDB environment to Microsoft Power BI. I created a custom connector using the sample ODBC connector from Microsoft (https://github.com/microsoft/DataConnectors/tree/master/samples). I am using the latest MongoDB ODBC Driver and MongoDB ODBC Driver for BI Connector. I created a System Data Source that is used as the input for my custom connector.

I am bringing in the following collection to Power BI for DirectQuery:
tbllinktrafficdata. I try to create a Slicer with the LastUpdate field. When I filter on one LinkID (which is a field), I get the following error.

"ErrorMessage":"Failed to convert type bigint to integer, expression `LinkID` to 1506780."

"ErrorMessage":"This ODBC driver doesn't support SQL_FN_CVT_CONVERT or SQL_FN_CVT_CAST. You can override this by using SqlGetInfo for SQL_CONVERT_FUNCTIONS."


It looks like I'm seeing a conversion error, but I'm not sure how to resolve the issue within the connector code.

Here is my SqlGetInfo function:

 

SQLGetInfo = [
// place custom overrides here
SQL_SQL92_PREDICATES = ODBC[SQL_SP][All],
SQL_AGGREGATE_FUNCTIONS = ODBC[SQL_AF][All],
SQL_CONVERT_FUNCTIONS = ODBC[SQL_CVT][BIGINT]
],

//this is from OdbcConstants file that is called in Power Query file
SQL_CVT = [
BIGINT = 0x00004000
]

 

Here is more of the Power BI Trace Log:

 

SqlTranslator/SqlParser/Parse {"Start":"2019-09-

03T19:55:54.6245555Z","Action":"SqlTranslator/SqlParser/Parse","HostProcessId":"12228","SQL":"\nSELECT MAX([t29].[LastUpdate])\n AS [a0],MIN([t29].[LastUpdate])\n AS [a1]\nFROM \n(\n(SELECT * FROM [tbllinktrafficdata (2)])\n)\n AS [t29]\nWHERE \n(\n[t29].[LinkID] = 1506780\n)\n ","ProductVersion":"2.72.5556.801 (19.08)","ActivityId":"3ef90ded-79fc-4726-83bb-c98d8ccf5be7","Process":"Microsoft.Mashup.Container.NetFX45","Pid":22304,"Tid":1,"Duration":"00:00:00.1356012"}
SqlExpressionTranslator/Translate {"Start":"2019-09-03T19:55:54.7606768Z","Action":"SqlExpressionTranslator/Translate","HostProcessId":"12228","IsRecognized":"True","Result":"(environment) => Table.RenameColumns(let\r\n t1133 = Table.RenameColumns(Table.PrefixColumns(environment[#\"tbllinktrafficdata (2)\"], \"tbllinktrafficdata (2)\"), {{\"tbllinktrafficdata (2)._id\", \"t29._id\"}, {\"tbllinktrafficdata (2).AgencyID\", \"t29.AgencyID\"}, {\"tbllinktrafficdata (2).DataType\", \"t29.DataType\"}, {\"tbllinktrafficdata (2).LastUpdate\", \"t29.LastUpdate\"}, {\"tbllinktrafficdata (2).LinkID\", \"t29.LinkID\"}, {\"tbllinktrafficdata (2).Occupancy\", \"t29.Occupancy\"}, {\"tbllinktrafficdata (2).Speed\", \"t29.Speed\"}, {\"tbllinktrafficdata (2).TravelTime\", \"t29.TravelTime\"}, {\"tbllinktrafficdata (2).Volume\", \"t29.Volume\"}}),\r\n t1135 = Table.SelectRows(t1133, (t1134) => Value.NullableEquals(t1134[t29.LinkID], 1506780)),\r\n t1140 = Table.Group(t1135, {}, {{\"a0\", (t1136) => List.Max(t1136[t29.LastUpdate])}, {\"a1\", (t1137) => List.Min(t1137[t29.LastUpdate])}}),\r\n t1141 = Table.SelectColumns(t1140, {\"a0\", \"a1\"})\r\nin\r\n t1141, {{\"a0\", \"a0\"}, {\"a1\", \"a1\"}})","ProductVersion":"2.72.5556.801 (19.08)","ActivityId":"3ef90ded-79fc-4726-83bb-c98d8ccf5be7","Process":"Microsoft.Mashup.Container.NetFX45","Pid":22304,"Tid":1,"Duration":"00:00:00.1279102"}
SimpleDocumentEvaluator/GetResult/Evaluate {"Start":"2019-09-03T19:55:54.6208186Z","Action":"SimpleDocumentEvaluator/GetResult/Evaluate","HostProcessId":"12228","ProductVersion":"2.72.5556.801 (19.08)","ActivityId":"3ef90ded-79fc-4726-83bb-c98d8ccf5be7","Process":"Microsoft.Mashup.Container.NetFX45","Pid":22304,"Tid":1,"Duration":"00:00:00.2835266"}
OdbcQuery/FoldingWarning {"Start":"2019-09-03T19:55:54.9495926Z","Action":"OdbcQuery/FoldingWarning","HostProcessId":"12228","Function Name":"VisitInvocation","ProductVersion":"2.72.5556.801 (19.08)","ActivityId":"3ef90ded-79fc-4726-83bb-c98d8ccf5be7","Process":"Microsoft.Mashup.Container.NetFX45","Pid":22304,"Tid":1,"Duration":"00:00:00.0000162"}
OdbcQuery/FoldingWarning {"Start":"2019-09-03T19:55:54.9498087Z","Action":"OdbcQuery/FoldingWarning","HostProcessId":"12228","Function Name":"VisitValueEqualsShared","ProductVersion":"2.72.5556.801 (19.08)","ActivityId":"3ef90ded-79fc-4726-83bb-c98d8ccf5be7","Process":"Microsoft.Mashup.Container.NetFX45","Pid":22304,"Tid":1,"Duration":"00:00:00.0000058"}
OdbcQuery/FoldingWarning {"Start":"2019-09-03T19:55:54.9498281Z","Action":"OdbcQuery/FoldingWarning","HostProcessId":"12228","ErrorMessage":"Failed to convert type bigint to integer, expression `LinkID` to 1506780.","ProductVersion":"2.72.5556.801 (19.08)","ActivityId":"3ef90ded-79fc-4726-83bb-c98d8ccf5be7","Process":"Microsoft.Mashup.Container.NetFX45","Pid":22304,"Tid":1,"Duration":"00:00:00.0057948"}
OdbcQuery/FoldingWarning {"Start":"2019-09-03T19:55:54.9498205Z","Action":"OdbcQuery/FoldingWarning","HostProcessId":"12228","Function Name":"AdjustForCompatibility","ProductVersion":"2.72.5556.801 (19.08)","ActivityId":"3ef90ded-79fc-4726-83bb-c98d8ccf5be7","Process":"Microsoft.Mashup.Container.NetFX45","Pid":22304,"Tid":1,"Duration":"00:00:00.0000034"}
OdbcQuery/FoldingWarning {"Start":"2019-09-03T19:55:54.9556351Z","Action":"OdbcQuery/FoldingWarning","HostProcessId":"12228","Function Name":"AdjustNumberValuesToPreventOverflow","ProductVersion":"2.72.5556.801 (19.08)","ActivityId":"3ef90ded-79fc-4726-83bb-c98d8ccf5be7","Process":"Microsoft.Mashup.Container.NetFX45","Pid":22304,"Tid":1,"Duration":"00:00:00.0000045"}
OdbcQuery/FoldingWarning {"Start":"2019-09-03T19:55:54.9556433Z","Action":"OdbcQuery/FoldingWarning","HostProcessId":"12228","Function Name":"SoftConvertSeries","ProductVersion":"2.72.5556.801 (19.08)","ActivityId":"3ef90ded-79fc-4726-83bb-c98d8ccf5be7","Process":"Microsoft.Mashup.Container.NetFX45","Pid":22304,"Tid":1,"Duration":"00:00:00.0000034"}
OdbcQuery/FoldingWarning {"Start":"2019-09-03T19:55:54.9556496Z","Action":"OdbcQuery/FoldingWarning","HostProcessId":"12228","ErrorMessage":"This ODBC driver doesn't support SQL_FN_CVT_CONVERT or SQL_FN_CVT_CAST. You can override this by using SqlGetInfo for SQL_CONVERT_FUNCTIONS.","ProductVersion":"2.72.5556.801 (19.08)","ActivityId":"3ef90ded-79fc-4726-83bb-c98d8ccf5be7","Process":"Microsoft.Mashup.Container.NetFX45","Pid":22304,"Tid":1,"Duration":"00:00:00.0002851"}
OdbcQueryDomain/ReportFoldingFailure {"Start":"2019-09-03T19:55:54.9566845Z","Action":"OdbcQueryDomain/ReportFoldingFailure","HostProcessId":"12228","Exception":"Exception:\r\nExceptionType: Microsoft.Mashup.Engine1.Runtime.FoldingFailureException, Microsoft.MashupEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\r\nMessage: Folding failed. Please take a look the information in the trace.\r\nStackTrace:\n at Microsoft.Mashup.Engine1.Library.Odbc.OdbcQueryExpressionVisitor.CallConvertOrCast(SqlExpression from, OdbcTypeMap toType)\r\n at Microsoft.Mashup.Engine1.Library.Odbc.OdbcQueryExpressionVisitor.TryVisitConvert(OdbcTypeInfo fromType, OdbcTypeInfo toType, SqlExpression expression, SqlExpression& convertedExpression)\r\n at Microsoft.Mashup.Engine1.Library.Odbc.OdbcQueryExpressionVisitor.TryConvert(OdbcTypeInfo typeInfo, OdbcScalarExpression expression, OdbcScalarExpression& convertedExpression)\r\n at Microsoft.Mashup.Engine1.Library.Odbc.OdbcQueryExpressionVisitor.<SoftConvertSeries>d__191.MoveNext()\r\n at Microsoft.Mashup.Engine1.Library.Odbc.OdbcQueryExpressionVisitor.AdjustNumberValuesToPreventOverflow(OdbcScalarExpression left, OdbcScalarExpression right, Precision precision)\r\n at Microsoft.Mashup.Engine1.Library.Odbc.OdbcQueryExpressionVisitor.AdjustNumberValuesForCompatibility(OdbcScalarExpression left, OdbcScalarExpression right, Precision precision)\r\n at Microsoft.Mashup.Engine1.Library.Odbc.OdbcQueryExpressionVisitor.AdjustForCompatibility(OdbcScalarExpression left, OdbcScalarExpression right, Precision precision)\r\n at Microsoft.Mashup.Engine1.Library.Odbc.OdbcQueryExpressionVisitor.VisitEquals(OdbcSqlExpression leftExpression, OdbcSqlExpression rightExpression, Precision precision, Boolean nullable)\r\n at Microsoft.Mashup.Engine1.Library.Odbc.OdbcQueryExpressionVisitor.VisitValueEqualsShared(InvocationQueryExpression expression, Boolean nullable)\r\n at Microsoft.Mashup.Engine1.Library.Odbc.OdbcQueryExpressionVisitor.VisitInvocation(InvocationQueryExpression expression)\r\n at Microsoft.Mashup.Engine1.Library.Odbc.OdbcQuery.SelectRows(FunctionValue function)\r\n\r\n\r\n","ProductVersion":"2.72.5556.801 (19.08)","ActivityId":"3ef90ded-79fc-4726-83bb-c98d8ccf5be7","Process":"Microsoft.Mashup.Container.NetFX45","Pid":22304,"Tid":1,"Duration":"00:00:00.0036644"}

 


Powershell to update datasource URL's

$
0
0

Hi Everyone,

 

I am working on a automated deployment system that deploys  PowerBI reports to a new workspace. This is all working fine but the issue i am having is updating the datasource with a new URL to get their information from. These are all SharePoint List data sources that need to be updated.

 

I am using the Invoke-PowerBIRestMethod  to sucessfull get the data sources within a report and I can manipulate the return to change the URL but when sending the update back i just get an error.

No information is given with the error it just doesn't work.

 

Does anyone have a working example of updatiung a datasource with powershell?

 

I have seen this thread but it doesn't have a solution 

https://community.powerbi.com/t5/Developer/Power-BI-REST-API-via-Powershell-Create-Datasource/td-p/511934

unable to generate token using the datasetid for reports using effective identity

$
0
0

using (var client = new PowerBIClient(new Uri(API_URL), new TokenCredentials(accessToken, "Bearer")))
{
Report powerBiReport = await client.Reports.GetReportInGroupAsync(groupId, reportId.ToString());
#region default
var generateTokenRequestParameters = new GenerateTokenRequest("view", null, identities: new List<EffectiveIdentity> { new EffectiveIdentity(username: username, roles: roles, datasets: new List<string> { powerBiReport.DatasetId }) });
var token = await client.Reports.GenerateTokenInGroupAsync(groupId, reportId, generateTokenRequestParameters);

}

 

it works fine without effectiveidentity ut it fails with effective identity. Please help in identifying the parameters

Re: Can not update datasource through API

$
0
0

Hi  ,

 

Could you please make sure that your data source doesn't have any of the points listed in the restriction ?

 

Capture.JPG

 

 

Re: Can not update datasource through API

Re: Embedded adding two semi colons to report container iframe

$
0
0

Same issue here.  Shows on all of our client facing reports.  Please fix!

Re: MongoDB Custom Connector Issue with DirectQuery - Failed to Convert BIGINT to INTEGER

$
0
0

I was able to work around this by transforming in SqlColumn function. Odbc SQL types taken from ODBC constants SQL_TYPE (included below)

SQLColumns = (catalogName, schemaName, tableName, columnName, source) =>
let
OdbcSqlType.BIG_INT = -5,
OdbcSqlType.INTEGER = 4,

FixDataType = (dataType) =>
if dataType = OdbcSqlType.BIG_INT then
OdbcSqlType.INTEGER
else
dataType,
Transform = Table.TransformColumns(source, { { "DATA_TYPE", FixDataType } })
in
// the if statement conditions will force the values to evaluated/written to diagnostics
if (Diagnostics.LogValue("SQLColumns.TableName", tableName) <> "***" and Diagnostics.LogValue("SQLColumns.ColumnName", columnName) <> "***") then
let
// Outputting the entire table might be too large, and result in the value being truncated.
// We can output a row at a time instead with Table.TransformRows()
rows = Table.TransformRows(Transform, each Diagnostics.LogValue("SQLColumns", _)),
toTable = Table.FromRecords(rows)
in
Value.ReplaceType(toTable, Value.Type(Transform))
else
Transform,

SQL Data Types

SQL_TYPE =
[
// Base data types (sql.h)
UNKNOWN = 0,
NULL = 0,
CHAR = 1,
NUMERIC = 2,
DECIMAL = 3,
INTEGER = 4,
SMALLINT = 5,
FLOAT = 6,
REAL = 7,
DOUBLE = 8,
DATETIME = 9, // V3 Only
VARCHAR = 12,

// Unicode types (sqlucode.h)
WCHAR = -8,
WVARCHAR = -9,
WLONGVARCHAR = -10,

// Extended data types (sqlext.h)
INTERVAL = 10, // V3 Only
TIME = 10,
TIMESTAMP = 11,
LONGVARCHAR = -1,
BINARY = -2,
VARBINARY = -3,
LONGVARBINARY = -4,
BIGINT = -5,
TINYINT = -6,
BIT = -7,
GUID = -11, // V3 Only

// One-parameter shortcuts for date/time data types.
TYPE_DATE = 91,
TYPE_TIME = 92,
TYPE_TIMESTAMP = 93,

// SQL Server Types -150 to -159 (sqlncli.h)
SS_VARIANT = -150,
SS_UDT = -151,
SS_XML = -152,
SS_TABLE = -153,
SS_TIME2 = -154,
SS_TIMESTAMPOFFSET = -155
],

Power BI Custom Dataset Refresh

$
0
0

Hello,

 

Im using an api to trigger a refresh on my dataset, and have been following instructions. Im pretty sure I have set it up correctly but for some reason I get a 404 error on Flow when testing. 

 

My dataset ID presents slightly different to the example but Ive tried to ensure im using the correct one. Any thoughts of what I could be doing incorrectly.

 

ID url.JPGflowerror.JPG

 

thanks

 


Re: Print and/or export to PDF from PowerBI Embedded Report

$
0
0

We are running into the same issue on our end. We have external users in the web application and we want to migrate them off of that into an embedded ISV solution, but we can't afford to lose the export to pdf option that the web service offers. Any ideas or thoughts about this issue would be greatly appreciated. 

Set SQLGetTypeInfo Searchable Property to SEARCHABLE for Custom Connector (MongoDB)

$
0
0

Hello I'm back again within a few hours of my last question. I am trying to create a custom Power BI connector to set up a DirectQuery connection from my local MongoDB environment to Microsoft Power BI. I created a custom connector using the sample ODBC connector from Microsoft (https://github.com/microsoft/DataConnectors/tree/master/samples). I am using the latest MongoDB ODBC Driver and MongoDB ODBC Driver for BI Connector. I created a System Data Source that is used as the input for my custom connector.

 

I am bringing in the following collection to Power BI for DirectQuery: tbllinktrafficdata. I try to create a Slicer with the LastUpdate (timestamp) field. When I filter on one LinkID (which is a field), I get the following error.

 

"ErrorMessage":"Data Type of column LinkID with searchable property UNSEARCHABLE should be SEARCHABLE or ALL_EXCEPT_LIKE. You can override the supported data types from ODBC driver using SQLGetTypeInfo."

 

I tried changing the SEARCHABLE column in the SqlGetTypeInfo function as instructed in the trace logs, but it does not to seem to work. Here is my function call in the connector code. OdbcSearchable is set to 3 which is pulled from the OdbcConstants.pqm file

 

        SQLGetTypeInfo = (types) => 
            let
                OdbcSearchable = ODBC[SQL_SEARCHABLE][SEARCHABLE],
                OdbcAllExceptLike = ODBC[SQL_SEARCHABLE][ALL_EXCEPT_LIKE],
                SetSearchable = (dataType) =>
                        OdbcSearchable, // SQL_SEARCHABLE = 3
                        //OdbcAllExceptLike, // SQL_ALL_EXCEPT_LIKE = 2
                // Outputting the entire table might be too large, and result in the value being truncated.
                // We can output a row at a time instead with Table.TransformRows()
                //rows = Table.TransformRows(types, each Diagnostics.LogValue("SQLGetTypeInfo " & _[TYPE_NAME], _)),
                //toTable = Table.FromRecords(rows),

                //Update SEARCHABLE column to SQL_SEARCHABLE
                Transform = Table.TransformColumns(types, { { "SEARCHABLE", SetSearchable } })
            in
                Transform, 

 

More trace logs if useful:

 

OdbcQuery/FoldingWarning {"Start":"2019-09-04T19:48:44.7842276Z","Action":"OdbcQuery/FoldingWarning","HostProcessId":"25156","Function Name":"VisitInvocation","ProductVersion":"2.72.5556.801 (19.08)","ActivityId":"ee0b51e3-2141-4a72-8f49-87a3e688314a","Process":"Microsoft.Mashup.Container.NetFX45","Pid":20256,"Tid":1,"Duration":"00:00:00.0000217"}
OdbcQuery/FoldingWarning {"Start":"2019-09-04T19:48:44.7842661Z","Action":"OdbcQuery/FoldingWarning","HostProcessId":"25156","Function Name":"VisitValueEqualsShared","ProductVersion":"2.72.5556.801 (19.08)","ActivityId":"ee0b51e3-2141-4a72-8f49-87a3e688314a","Process":"Microsoft.Mashup.Container.NetFX45","Pid":20256,"Tid":1,"Duration":"00:00:00.0000031"}
OdbcQuery/FoldingWarning {"Start":"2019-09-04T19:48:44.7842729Z","Action":"OdbcQuery/FoldingWarning","HostProcessId":"25156","Function Name":"VisitColumnAccess","ProductVersion":"2.72.5556.801 (19.08)","ActivityId":"ee0b51e3-2141-4a72-8f49-87a3e688314a","Process":"Microsoft.Mashup.Container.NetFX45","Pid":20256,"Tid":1,"Duration":"00:00:00.0000023"}
OdbcQuery/FoldingWarning {"Start":"2019-09-04T19:48:44.7842799Z","Action":"OdbcQuery/FoldingWarning","HostProcessId":"25156","ErrorMessage":"Data Type of column LinkID with searchable property UNSEARCHABLE should be SEARCHABLE or ALL_EXCEPT_LIKE. You can override the supported data types from ODBC driver using SQLGetTypeInfo.","ProductVersion":"2.72.5556.801 (19.08)","ActivityId":"ee0b51e3-2141-4a72-8f49-87a3e688314a","Process":"Microsoft.Mashup.Container.NetFX45","Pid":20256,"Tid":1,"Duration":"00:00:00.0002237"}
OdbcQueryDomain/ReportFoldingFailure {"Start":"2019-09-04T19:48:44.7848477Z","Action":"OdbcQueryDomain/ReportFoldingFailure","HostProcessId":"25156","Exception":"Exception:\r\nExceptionType: Microsoft.Mashup.Engine1.Runtime.FoldingFailureException, Microsoft.MashupEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\r\nMessage: Folding failed. Please take a look the information in the trace.\r\nStackTrace:\n   at Microsoft.Mashup.Engine1.Library.Odbc.OdbcQueryExpressionVisitor.VisitColumnAccess(ColumnAccessQueryExpression expression)\r\n   at Microsoft.Mashup.Engine1.Library.Odbc.OdbcQueryExpressionVisitor.VisitValueEqualsShared(InvocationQueryExpression expression, Boolean nullable)\r\n   at Microsoft.Mashup.Engine1.Library.Odbc.OdbcQueryExpressionVisitor.VisitInvocation(InvocationQueryExpression expression)\r\n   at Microsoft.Mashup.Engine1.Library.Odbc.OdbcQuery.SelectRows(FunctionValue function)\r\n\r\n\r\n","ProductVersion":"2.72.5556.801 (19.08)","ActivityId":"ee0b51e3-2141-4a72-8f49-87a3e688314a","Process":"Microsoft.Mashup.Container.NetFX45","Pid":20256,"Tid":1,"Duration":"00:00:00.0001043"}

Re: Embedded adding two semi colons to report container iframe

$
0
0

We are experiencing the same issue with the embedded reports.  Please fix asap.

Bar chart with one column as a percentage of another column

$
0
0

I have a table with data like this:

 

Period     Col1      Col2

201908         5         10

201908         3         12

201908         4           9

201907         8         10

201907         7         13

 

I want a bar chart that shows Period as the legend.  The first column would be the sum of Col1 for 201908 (5+3+4) divided by the sum of Col2 (10+12+9).  The second column would be the sum of Col 1 for 201907 (8+10) divided by the sum of Col2 for 201907 (7 +13).  If I calculate the percentages by row, it does not return the correct amounts for the graph because it tries to summarize the percentages.  I do not want an average of the percentages.  I am able to get the correct amounts in a table, but I cannot figure out how to translate that into a bar chart.  Please help.

Re: Versioning in Template App

$
0
0

Answer from Power BI Support:

Once the latest version is updated customer need to manually update that from App source

Re: combo box with dynamic value

$
0
0

no one got same issue with me? about blank string with combo box

Re: Power BI Custom Dataset Refresh

$
0
0

Hi  ,

 

If you are using API, means make sure you are passing the correct Group ID (Workspace) there are 2 different api is there calling the dataset in MyWorkspace and with OtherWorkspace

 

Make sure you the credentials passing through the flow is able to see the dataset


Re: Powershell to update datasource URL's

Re: unable to generate token using the datasetid for reports using effective identity

$
0
0

Hi  ,

 

What do you mean by fails , do you get any error ? pls share that.

 

  • Make sure that username,roles are not having null values
  • Make sure your reports developed using the RLS
                    if (datasets.IsEffectiveIdentityRolesRequired == true)
                    {
                        if (!string.IsNullOrWhiteSpace(username))
                        {
                            var rls = new EffectiveIdentity { Username = username, Roles = new List<string> { roles }, Datasets = new List<string> { report.DatasetId } };

                            if (!string.IsNullOrWhiteSpace(roles))
                            {
                                var rolesList = new List<string>();
                                rolesList.AddRange(roles.Split(','));
                                rls.Roles = rolesList;
                            }
                            // Generate Embed Token with effective identities.
                            generateTokenRequestParameters = new GenerateTokenRequest(accessLevel: "view", identities: new List<EffectiveIdentity> { rls });
                        }
                    }

Try the above code which having more condition for you to check

Re: Connecting to web api

$
0
0

Hi  ,

 

Do you have any update ? If you solved your problem, please accept the answer so that it will help other community members

Re: Get Data from API

Custom visual - adding borders to visual

$
0
0

Hello,

 

I'm creating a custom visual and I'm new to the creation process as well as learning Typescript/Javascript. I'd like to create a visual that can change the border color/style of a bar or change the shading style of a bar. What would be a good approach to begin creating this visual?

For further explanation, I have data laid like this:

Project       DateType      Date

A                 Actual1        1/1/2019

A                Planned1      2/1/2019

A                 Actual2        3/1/2019

A                Planned2      4/1/2019

B                  Actual1        5/1/2019

B                Planned1       6/1/2019

B                 Actual2         7/1/2019

B                Planned2       8/1/2019

I'd like to show the data either like this (changing border colors):

Untitled.png

Or like this (changing the shading style):

Untitled(1).png

Thanks for any help!

Viewing all 48084 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>