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

Re: set active page in report with JavaScript API.

$
0
0

Thanks for sharing. This works for me perfectly.

Also, for someone who has the same issue with bookmark, I'd like to add that the bookmark setting works the same way! Bookmark name setting just doesn't work when loading. I've been searching for the solutions. And it finally worked when I tried also with the GUID in the url, instead of the bookmark name. Like this

embedConfig={

...

'bookmark':{
                 "name":"Bookmarkfdc07f*******120"
}

You can get the GUID in the url with your target bookmark on. 

app.powerbi.com/groups/.../ReportSectiond...?bookmarkGuid=Bookmark6...1

 


Re: Sliding legend

$
0
0

 ,

 

I can't use DAX since I'm using live connection to OLAP cube. I wanted to recreate line chart, but make cumulative calculations inside of visual. However, by legend doesn't work, as I mentioned before.

 

Regards,

Yerkhan

Custom Visual - How to create word wrap text labels on a chart

$
0
0

Dear Forum,

 

I am creating my own custom visual and would like to wordwrap the data labels on a chart. I have been able to display labels returning textMeasurementService.getTailoredTextOrDefault (from the PowerBI formatting utils) but, of course, that truncates long labels with an ellipsis. I was hoping to use textMeasurementService.wordBreakOverflowingText but have not been able to find an example of how to work with that. Can anyone help with an example code snippet please?

Re: Uploading PBIX File in C# sample (HELP!)

$
0
0

Looking forward to see how you solved this, please post the solution on github and share here. Thank you ! 

Re: Sliding legend

$
0
0

 

 

Also, when I click on arrow in scrollable legend in bar chart, text color of legend changes. By default it was black. I changed it to white using visual.less. When I scroll legend, it changes again to black.

How it can be changed?

 

Regards,

Yerkhan

Interactive field in visual object

$
0
0

Good morning, 

I don't have much experience with Power BI, I'm trying to do a thing that I don't know if it's possible.

It consists in make interactive a field in a visual object, I mean, I have a visual object that is used as a filter and another visual object where the things I have in the filter have to appear, the problem is that these things aren't in the same column so all of them appear instead of my filter. 

thanks

Re: Uploading PBIX File in C# sample (HELP!)

Converting UTC to local time

$
0
0

Hi,

We are very passionate about Azure services and Power BI, especially when diving deep into real-time data through integration with Microsoft Azure Stream Analytics.

We have been working on a project where we send temperature data into the cloud via Azure IoT Hub, then consume the incoming events to be visualized in real-time using Stream Analytics and Power BI.
We understand that it is important that Windows Azure have a consistent time zone across all geographies. However, we wish to have Local time in our streaming dashboard in order to satisfy our customer’s needs. For the time being, we are using the DATEADD (Azure Stream Analytics) function to add the missing hours.
We wish the solution to be a dynamic conversion between UTC (Coordinated Universal Time)
and the user's local time .
Please be advised that we are using an Azure Pay-As-You-Go account and a Power BI 13.0.10457.155 version.

Thank you for your time and consideration in regard to this matter,
I look forward to hearing from you soon,

Best Regards,


When Importing from API's Percentage Values are Importing as Text

$
0
0

Having trouble importing from two different API's. The first is OECD.org, the second is stlousifed.org. I am able to successfully import data in tables. The problem I am having is that values coming from the API's for percentages are imported as "text" by Power Bi - Power Query Editor. 

 

For example 4.2 imports as text. The values need to be stored as 4.2%. The problem I am having is trying to transform them. If I select Transform - Data Type - Percentage Power Query Editor and Power Bi convert 4.2 (text) to 420.00%, which is not the correct value. As a workaround, I changed the [Value] type Text to Decimal, then I created a third calculated column called Percent = DIVIDE([Value],100) and then I Transform it to %. For a short term fix, this works kinda. Long term, as I intend to connect to numerous API's that provide the same values it will make the import tedious, not to mention storing extra unnecessary columns. 

 

Any suggestions on how to resolve this using Advanced Editor functions that do not include creating calculated columns would be much appreciated. Below is some example date. Note: Each table to the left, save the "Formulas", one is an API call. Every one of them has a percentage number is stored as "text" during import. 

 

Civilian Unemployment.PNGProducer Price Index Example.PNG

 

 

 

 

 

Is there any way to stop "Microsoft Power BI" and the url from being added to a printed Report?

$
0
0

I'm using Power BI Embedded. When printing a report "Microsoft Power BI" and the Url are added to the top of the report. Is there any way to remove this?

Capture.PNG

 

Re: Is there any way to stop "Microsoft Power BI" and the url from being added to a prin

$
0
0

Hi  - I can't answer this from a Power BI Embedded perspective, but just wanted to throw this up as a possibility. Are you printing using the function in your web browser? If so then most browsers have a Headers and Footers option in their print dialog that is set by default.

Here's where to find in Chrome:

image.png

Here it is in Edge:

image.png

Internet Explorer (of course) is a bit different, and this can be found in Print Preview > Page Setup. Make sure all boxes in the Headers and Footers section are set to -Empty-, e.g.:

image.png

 

Hopefully this might be what you need. If not, then I'm sure one of the more experienced Embedded folks can help you out.

Good luck!

Daniel

R Script output to table

$
0
0

I am using R Scripting to output the results to a table.  The following script, will produce a plot; however, I tried to output to a dataframe and I am not coding properly.  Thank you in advance for assistance.

 

library(forecast)

library(tseries)

Adobe_Arima = ts(dataset$Revenue, start=2014,frequency = 12)

Adobe_Forecast = auto.arima(Adobe_Arima, seasonal=TRUE)

Predicted_Forecast = forecast(Adobe_Forecast,h=10)

plot(Predicted_Forecast)

  • Trying to output Predicted_Forecast as a table.

How to managed external users in embedded license

$
0
0

Hi All,

 

Could you please help me out in given queries regarding Power BI Embedded license  ???

1) I have lots of external users so it is not feasible to add them as a Guest into my organzation's azure active directory so where we can add them in embedded lincense?

2)How to add external user to Azure Active directory for embedded Lincense?

 

Thanks!

 

 

Re: Sliding legend

$
0
0

From the looks of things, there is something that happens with re-drawing the nav buttons when clicked that seems to ignore any styling or changes applied. I made some attempts in one of my visuals to do something similar in the past (to change the shape of the icons), but found that it was more trouble that it was worth and abandoned my efforts.

If you want to do this in a maintainable way, then I think you'll need to create an idea with the custom visuals team to add support. You can refer to this post in the Custom Visuals Development Discussion Forum for more details.


Regarding your other question, if you can't write DAX in-model, I would suggest requesting the owners of the OLAP cube add in such a measure for you - these tools are designed for such functionality and it is minimal work for them to manage and support. If the OLAP cube is SSAS, then SSAS Tabular uses DAX for its measures; SSAS Multidimensional can achieve the same via MDX. Solving in the semantic model is going to be the way to go.

Not to discourage learning how to develop custom visuals at all - I would personally love to have more people to collaborate with and learn from - but this is a very heavy approach to solving a problem that can be resolved upstream and is going to be several of hours' work from my side to document how such a solution could conceivably work (and much more from yours to develop). I'm a big subscriber to working smarter rather than harder. As it's outside the scope of the original question, I think it probably warrants its own thread if you specifically want to go through this.

However, if I were to do this, then I'd start by working with the standard categorical data mapping that comes with a new visual project, and set my view model hierarchy as measure[]> category[]> value[]. Once I've mapped my distinct measures and categories, as I iterate through the value array, I'd add to the previous value so that each subsequent value in the value array for each measure/category is a cumulative total.

Re: Sliding legend

$
0
0

 ,

 

Firstly, I tried adding cumulative value to OLAP cube, however, it didn't result in required field.

Therefore, I started building custom visual. I managed to overcome issue with legend text color and changing position of legend.

view model hierarchy as measure[] > category[] > value[]

Could explain this a bit more? 

 

Regards,

Yerkhan


Re: Converting UTC to local time

$
0
0

Hi,
I have the same problem. Are there any solution for it ?  How to convert UTC  Time to  local time in my strteaming dashboard, pleas.

Re: How to managed external users in embedded license

$
0
0

Hi  

 

I think you are trying with the User Owns Data Approach where your users needs their own Pro licenses to view their embedded report, which needs all your external users to add into your azure active directory.

 

I exactly don't know your use case, but can you try the App Owns data approach where your just need one service account/SPN to embed the report and your end users don't have pro licenses/add into your azure ad.

 

Reference : https://docs.microsoft.com/en-us/power-bi/developer/embed-sample-for-customers

Re: Custom Visual : Properties (Color picker)

$
0
0

Hi. I am facing the same issue. Did you manage to solve it?

Re: Custom Visual : Properties (Color picker)

$
0
0

Hi  ,

 

I have spent some hours trying to find a solution.

But I'm sad to say I wasn't able to solve it.

 

If you find something Smiley Happy, you can always let me know.

Re: Custom Visual : Properties (Color picker)

$
0
0

Hi  ,  ,

 

If you add the following line of code to the update method, it will set the visual this.ettings variable to either the default colors or the values from the formatting pane.

this.visualSettings = VisualSettings.parse(dataView) as VisualSettings

And in the rest of the code you can refer to this.settings to get the configured colors.

 

-JP

Viewing all 48798 articles
Browse latest View live


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