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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Sergio_DG
Frequent Visitor

Best approach to modify data set from api to show a line chart?

Hello,

 

I have a dataset that was uploaded via csv to power bi desktop. Then I publish the data set to Power Bi Service to generate a report and display it in my app through the code of Power Bi Embedded Samples repository.

 

Now I want to modify that data. I tried this approach:

 

Making a post of my data in form of JSON to a dashboard tile with streaming service, (to not use Azure AD auth). The problem was that once the data was up, I couldn't draw it properly. The line chart didn't allows me to pass 2 data columns and a legend. (so I didn't moved forward on how to show the dashboard in my app).

 

Basically what I want is a way to modify data (add and remove rows) before showing in my app the correponding chart, and showing it properly (line chart with 2 values and a legend).

 

So:

 

¿Is there any way I can draw a line chart with pushed data with 2 values and a legend?

 

¿Is there a way I can modify data programatically that was published from power bi desktop and draw the line chart with 2 values and a legend?

 

Is it possible to do this using only NodeJS code? without Azure AD oauth?

 

In general, what is the best approach to do this? Dirty or clean.

 

 

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Do you mean that you use a field of the new dataset as legend after merging the dataset?

As far as I know, there is no such Rest API. You can only merge the data sources through desktop, then re publish the report, and then update the app in the application.

https://www.poweredsolutions.co/2019/04/09/combine-or-append-data-in-power-bi-power-query-main-conce... 

 

View solution in original post

3 REPLIES 3
V-lianl-msft
Community Support
Community Support

Do you mean that you use a field of the new dataset as legend after merging the dataset?

As far as I know, there is no such Rest API. You can only merge the data sources through desktop, then re publish the report, and then update the app in the application.

https://www.poweredsolutions.co/2019/04/09/combine-or-append-data-in-power-bi-power-query-main-conce... 

 

 

Hi V-lianl-msft, thanks for your reply,

 

Yes, I sent a table with 2 columns, 2 of values and 1 for the legend. I did it via data streaming in a tile, but once the data hits the tile, it only allows me to draw 1 value and the legend. Is there any way in general to achieve drawing the 2 values and the legend? or any workaround?

Sorry, a table of 3 columns. 2 of numeric values, and 1 legend

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.