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

Re: Cumulative sum


Re: Problem with visual object "Image by CloudScope"

$
0
0

Hi  

 

I checked the CloudScope webpage and it does appear that this is due to a new release, where they have added additional functionality:

 

28-05-2020 09-57-28.png

 

If you are still having issues after re-applying the field, you may want to request access to their beta visual.

 

Mark

Re: Powershell Get-PowerBIWorkspace filter argument

$
0
0

Hi  ,

 

Please refer to the article.

Get-PowerBIWorkspace 

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Re: Cumulative sum

$
0
0

Hi ,

I test the modified formula and it can output the expected result as you shared, please try it if it meets your requirement:

Cumulative Table = SUMMARIZE ( 'Role Master', 'Role Master'[GD SI Role], 'Role Master'[Resource Plan], 'Role Master'[GSI Name], 'Role Master'[Fiscal Year], 'Role Master'[Month], 'Role Master'[Assigned], "MyExpectedOutputColumn", VAR maxMonth = CALCULATE ( MAX ( 'Role Master'[Month] ), FILTER ( ALLSELECTED ( 'Role Master' ), [Assigned] <> BLANK () ), VALUES ( 'Role Master'[Fiscal Year] ), VALUES ( 'Role Master'[GSI Name] ), VALUES ( 'Role Master'[GD SI Role] ) ) RETURN IF ( RIGHT ( [Month], 2 ) < RIGHT ( maxMonth, 2 ), CALCULATE ( SUM ( 'Role Master'[Assigned] ), FILTER ( ALLSELECTED ( 'Role Master' ), RIGHT ( [Month], 2 ) <= RIGHT ( EARLIER ( 'Role Master'[Month] ), 2 ) ), VALUES ( 'Role Master'[Fiscal Year] ), VALUES ( 'Role Master'[GSI Name] ), VALUES ( 'Role Master'[GD SI Role] ) ) ) )

Regards,

Xiaoxin Sheng

How to view CurrentUserSessions in Power BI Embedded

$
0
0

I am having a Power BI embedded Capacity in Azure. I have a workspace linked to it and report is embedded in my website.

I was to check if the report is viewed or not at this time before suspending the capacity. Is there any metrics for this.

 

I am able to see a metric like below but donot know how to use this.

"name": "Microsoft.PowerBIDedicated/capacities/providers/Microsoft.Insights/metricDefinitions/read",

{
"name": "CurrentUserSessions",
"displayName": "Current User Sessions",
"displayDescription": "Current number of user sessions established.",
"unit": "Count",
"aggregationType": "Average",
"metricFilterPattern": "^\\b(?i)EM|P\\d$"
},

Thanks in advance,

Dilip

Power Bi ExportToFile returns a pdf with nothing but the Power Bi logo when exporting with bookmarks

$
0
0

Greetings,

I'm currently working on exporting embedded reports through the use of Power Bi REST Api using the exportToFile endpoint. This has been working nicely however, the pdfs always return with the default look of the report regardless of what slicer values the user picked before exporting.

 

After investigating a bit, I concluded that capturing a bookmark using report.bookmarksManager.capture() available through the javascript Api and using it's state property in the ExportToFile request would be the best solution.

 

However the resulting pdf always returns like the image below, what am I doing wrong?

Capture.PNGreturning pdf

Re: Dataflow refresh status - API

$
0
0

I think is a nice sneaky solution, I do worry that because its not offical this could change?

 

I have a work around with the APIs to keep checking the update datetime to see if has changed from the when the refresh request was started. This works quite well for now, but would be good to see the added to the API properly

PBI Embedded - Dedicated resource - auto page refresh message

$
0
0

Hi All,

 

I am new to PBI embedded,

Just running through the User Owns Data tutorial & linking to an existing report I have.

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

 

After setting up the dedicated capacity using Azure Power BI Embedded & a PBI Pro (trial) account,

 

I am now seeing a strange message above my embedded report when running locally.

 

Capture.PNGerror

I cant seem to find any settings in the azure capacity related to this (i am the admin) and tbh i dont think i want this feature.

 

My report does include DirectQueries but i am happy for them to just refresh on user load.

 

How do i remove this message and stop it showing? by either enabling the setting or turning something off?

 

Thanks,

A

 


Re: Dataflow refresh status - API

$
0
0

Yes - it definitely could change, so the approach I outlined should be used with caution.

The problem with checking the last updated time on the partitions (if that's what you're referring to) is when the refresh is hanging/fails for some reason. You'd need to define some sort of timeout, otherwise your polling could go on forever. I considered doing this, but stumbled across the undocumented API I allude to in my blog, which I thought was a marginally better solution for my use-case, but by no means ideal. 

As you mentioned, hopefully there'll be a 'proper' solution in the near future 🙂 

Re: How to get date that is 7th working days from any specific date

$
0
0

Hi Greg,

 

Thank you for your reply.  For my scenario, the NetWorkingDays is fixed number, ie. NetWorkingDays = 7. I would need a Dax function that would return the date instead by subtracting 7 working days from current date or the selected date. I need this to find the average of 7 working days. Please let me know if you have solution for this.

 

Thanks,

Pragati

Invisible Filter Pane visible in Power BI Embedded

$
0
0

Hi All,

 

I am having an issue with  Power BI Embedded Report and the Filter Pane. In the past I remember (memory can be funny though) that the Filter pane, when marked invisible on the desktop file, would be invisible in the embedded reports even when filterPaneEnabled: true was set in the JS.

 

However, now i cannot get the filter pane to disappear regardless of the way the PBI file is set up.

 

I have the Over all Filter Pane marked Invisible in the Power BI Desktop File

image.png

When I publish the Premium Capacity Workspace and view the Report in the Power BI Service ,the Filter Pane is indeed Invisible

 

However, when i view the Embedded report in our company website the Filter pane is visible. The individual page/report/visual level filters that i have marked as invisible are thankfully invisible as well, but the overall Filter pane is still visible

 

I have also tried this with the new Filter experience by Disabling the Filter pane in the Power BI Desktop file with the same results.

image.png

 

 

The JS for the embedded code does have the filterPaneEnabled:true marked since we need the workspace to show the filter pane on some of our embedded reports. Does that override in general for the whole workspace? Or is this a new/known issue.

 

Thanks

Re: Powershell Get-PowerBIWorkspace filter argument

$
0
0

Thanks v-lionel-msft.  I've already reviewed the documentation on this cmdlet that you've suggested.  My question is specifically on how to pass multiple filter arguments to the filter parameter of the cmdlet.

Re: Powershell cmdlet Get-PowerBIDatasource

Re: Invisible Filter Pane visible in Power BI Embedded

$
0
0

We are having a similar problem in that just today, the filter pane starting showing up for Q&A embedded (it's never been there before) even though we DON'T indicate to include it in our JS embed configuration.

 

Microsoft's own Power BI demo site Q&A is now showing the filter panel too. It wasn't there yesterday.

Re: Invisible Filter Pane visible in Power BI Embedded

$
0
0

Are you using bookmarks for navigation?

If so please check them all for making the filterpane invisible (as in your question).
We had the same but updating all the bookmarks did fix this issue


New Look Workspace Reports in Embedded capacity?

$
0
0

I am trying to get the new look reports into my embedded capacity. Right now, on our webpage, the reports render with the report tabs across the bottom, similar to how this report is in this screenshot along the very bottom (couldn't copy in my own screenshots):

https://powerbicdn.azureedge.net/mediahandler/blog/legacymedia/6518.report1.PNG

 

I am trying to get the reports to look like this (items #3 in screenshot), with the tabs/reports along the left side (similar to how they look in my Workspace):

https://docs.microsoft.com/en-us/power-bi/consumer/media/service-new-look/power-bi-new-look-changes.png

 

I have all my workspaces set to "New Look On", however I know this a user by user setting, so not sure how it effects embedded. Will this not happen till the new look is generally availible? Is this something I can set in embedded? 

 

Re: How to get date that is 7th working days from any specific date

$
0
0

 Net Work Days returns the number of working days between two dates, true. But it is the technique that I was pointing you to. In your case, you would create a table variable using CALENDAR that would be from your date to your date -9 (you can just subtract 9 from your date to get your starting date for CALENDAR). You would use ADDCOLUMNS to add a WEEKDAY column using 2 as the second parameter. You then FILTER this to remove rows where your weekday column is greater than 5. Now you use ADDCOLUMNS again to count how many days each date is away from your target date. You then FILTER this to 7 and that's your date.

 

If you want a specific implementation, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.

Re: Invisible Filter Pane visible in Power BI Embedded

$
0
0

Thanks for that. Unfortunately we aren't using bookmarks so that doesn't help us here.

Re: Storing dict outside of visual.ts

$
0
0

Hi ,

  1. Create a file in the relative folder to your visual.ts, e.g. constants.ts.
  2. Cut/paste your dict declaration into this file.
  3. Change private dict to export const dict
  4. In your visual.ts, at the top, add import { dict } from './constants.ts';
  5. You can then access the object as dict anywhere in the visual.ts code (so you may need to remove 'this.' from any instances if you've done that, as it's no longer a property of your Visual class.

Note that you don't have to use these exact names, just make sure everything links together, e.g. the constant name and the file it's sourced from.

Also, the export in front of your const declaration in step 3 is very important, otherwise it's not 'visible' to other files when you try to import it.

If you want to see a pre-canned example within your project (assuming you started with a blank visual), your settings.ts does the same thing with the VisualSettings class declaration, and its subsequent import into visual.ts.

Here's some further reading on ES6 imports and exports.

Good luck!

Daniel

Re: how to create public iframe on website but optimized for mobile version

$
0
0

thank you I lean more for the vertical position of the mobile since it is the most used, so how would be the code html to use for switch links interchange

 

thanks

 

 

Viewing all 48998 articles
Browse latest View live


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