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

Re: Unable to turn on Personalize visuals with git-integrated PBIR files

$
0
0

Thanks for the reply from lbendlin , please allow me to provide another insight:
Hi, @CodyThomas 

     Has the problem been solved? If it does, share your solution and accept it as a solution that will help other community members who have the same problem as you.

Best Regards,

Leroy Lu


Re: Salesforce is forcing to use Connect REST API instead of Custom Metadata Type for Embedding Repo

$
0
0

Hi @DanielRamos ,

 

According to your statement, I think your requirement is to embed power bi report by app owns data in your application.

Here I suggest you to refer to below offical blog to learn the steps.

For reference: Embed content in your Power BI embedded analytics application - Power BI | Microsoft Learn

Here is the sample template: GitHub - microsoft/PowerBI-Developer-Samples: A collection of Power BI samples for developer use.

If you choose service principal as authentication method, you need to refer to below blog to register and configure your app in Azure.

For referenece: Embed Power BI content in an embedded analytics application with service principal and an application secret - Power BI | Microsoft Learn

 

Best Regards,
Rico Zhou

 

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

Re: Update DataLake AccessKey when deploying

$
0
0

Hi @shoefried ,

 

I think you can try to create a Microsoft Entra ID service principal for your Azure storage.

For reference:

Tutorial: Connect to Azure Data Lake Storage Gen2 - Azure Databricks | Microsoft Learn

Then you can securely access data in the Azure storage account using OAuth 2.0 with your Microsoft Entra ID application service principal for authentication.

 

Best Regards,
Rico Zhou

 

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

 

Zoom Power BI report

Gateway not allowing retrieve more then 1000 records via REST API or connect via 32bit ADODB

$
0
0

Dear,

 

We've been recording data about our machines since 2020. So we have a massive amount of data that we visualise via power BI dekstop (for now).

 

We have been trying to move to the cloud since 3 months, so the cloud so that other users have the same tools but we are facing issues. All of our data is is stored in an SQL database, but our historical data is encrypted in that SQL database.
We can access that data via an 32-bit ADODB provider OR via the REST API.

The power-BI gateway does not support a 32 bit ADODB provider nor does it allow us to retrive more the 1000 records via the REST-API.
The power-BI desktop app does provide connection to a 32 bit ADODB provider AND does allow us to retrive more then 1000 records (via a list of api calls)

- We can't find any solutions for these issues?
- Is there any way (maybe via scripting) to publish the data with the desktop app instead of the gateway?
- If not, would it be a solution to run the the power bi server locally and use 'Power BI Desktop for Power BI Report Server'?
- If all these are not a solution, I guess one option would be to create a 2nd SQL database and decrypt the historial data into that 2nd database. The question remains, how can we do this with the minimul load on our local server?

 

Kind regards,

Nick

How to get POWER BI Import Error Programmatically

$
0
0

I am using Power BI (Microsoft.PowerBI.Api.Models) SDK Model in our C# Application . When we Import report it returns importstate only success or failed but I need some more information in my code like Import Error if ImportState is Failed. How can I get such information.

This is the below piece of code .

When Looking at Import Model Class ,it does not have any property exposed which denotes ImportError .What is the solution to figure out ImportError if ImportState is Failed

 

Import import = await io.PostImportWithFileAsyncInGroup(GroupID, file, ImportConflictHandlerMode.Abort, cancellationToken: token);

 

publicclassImport
        {public Guid Id { get; set; }publicstring Name { get; set; }publicstring ImportState { get; set; }public IList<Report> Reports { get; set; }public IList<Dataset> Datasets { get; set; }public DateTime? CreatedDateTime { get; set; }public DateTime? UpdatedDateTime { get; set; }
    }

  

Re: Custom data connector using oauth2 not refreshing access token

$
0
0

Two years later, and there is very little progress.  I did notice a comment that says dataflows may not suffer the same problems as datasets:

"
Dataflows specifically were recently updated to support token refresh, so they are no longer subject to the 1 hour timeout. However, other artifacts, such as pipelines, copy jobs, or semantic models, are still subject to the limitation."


... Unfortunately the reason dataflows aren't a good option, is because we can't use them with custom connectors.  There is no support for custom connectors in dataflows.  That incompatibility has been in place for many years, and Microsoft keeps pushing out their promised ETA.  I believe the current ETA is end of 2025.

Report If data missing for more than 3 concecutive dates

$
0
0

I have the below data, where in I have to report if the data is missing for more than 3 days.  for example City - Jaurez Compaby - BPI Site - JPP data missing after 8/7 for more than 3 days.  Some how I need to flag them! Any help is appreciated!! Thanks. 

karti1507_0-1724860680260.png

 


Re: Cannot access Admin APIs with service principal via ADF

$
0
0

Gave up, went through the instructions again with a new service principal, and now it works.

 

¯\_(ツ)_/¯

Re: Microsoft Fabric API: 400 Bad Request

Re: Report If data missing for more than 3 concecutive dates

$
0
0

Hi @karti1507 ,

 

I suggest you try this code to create a measure.

Measure = VAR _PREVIOUSDATE = MAXX ( FILTER ( ALL ( 'Table' ), 'Table'[City] = MAX ( 'Table'[City] )&& 'Table'[Company] = MAX ( 'Table'[Company] )&& 'Table'[Site] = MAX ( 'Table'[Site] )&& 'Table'[Date Provided] < MAX ( 'Table'[Date Provided] ) ), 'Table'[Date Provided] ) VAR _FUTUREDATE = MINX ( FILTER ( ALL ( 'Table' ), 'Table'[City] = MAX ( 'Table'[City] )&& 'Table'[Company] = MAX ( 'Table'[Company] )&& 'Table'[Site] = MAX ( 'Table'[Site] )&& 'Table'[Date Provided] > MAX ( 'Table'[Date Provided] ) ), 'Table'[Date Provided] ) VAR _DAYDIFF1 = DATEDIFF ( _PREVIOUSDATE, MAX ( 'Table'[Date Provided] ), DAY ) VAR _DAYDIFF2 = DATEDIFF ( MAX ( 'Table'[Date Provided] ), _FUTUREDATE, DAY ) RETURN IF ( _DAYDIFF1 > 3 || _DAYDIFF2 > 3, "Red" )

Then set the conditional formatting for [Date Provided] column.

vrzhoumsft_0-1724897500024.png

Result is as below.

vrzhoumsft_1-1724897577602.png

 

Best Regards,
Rico Zhou

 

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

Re: Gateway not allowing retrieve more then 1000 records via REST API or connect via 32bit ADODB

$
0
0

Hi,@NickKindt 

Regarding the issue you raised, my solution is as follows:

1.First of all, you're right, but unfortunately the Power BI gateway only supports 64-bit drivers, which means you won't be able to use the 32-bit ADODB provider directly with the gateway.

Here is a screenshot of the official documentation:

vlinyulumsft_0-1724910041844.png

Here are the relevant links:

Solved: 32 Bit ODBC driver with 64 Bit Power BI - Microsoft Fabric Community
 Install an on-premises data gateway | Microsoft Learn

2.Second, by implementing pagination, you can bypass the REST API limit of 1000 records per call.

Here is a screenshot of the  documentation:

vlinyulumsft_1-1724910041846.png
Here are the relevant links:

How to query more than 1000 rows of a dataset – Data & Insights Client Center (socrata.com)

3.Then, if you have an Office 365 account, simply publish the report in your Personal Workspace or Office 365 Group/Workspace (if you have a Professional Edition). Then open the report in the Power BI service (App.powerbi.com), a process that doesn't require the use of a gateway. However, automatic data refresh is not supported by this method. You'll need to manually refresh and republish the report.
Here are the relevant links:
Solved: Is it possible to publish the reports in cloud wit... - Microsoft Fabric Community

4.Regarding what you mentioned, running Power BI Report Server on-premises and using "Power BI Desktop for Power BI Report Server" we think might be a viable solution, and this setup allows you to manage and distribute reports locally, which may be more in line with your current infrastructure.
Here are the relevant links:
Install Power BI Desktop for Power BI Report Server - Power BI | Microsoft Learn
 

5.Finally, to decrypt historical data with minimal local server load, you can use SQL Server's function DECRYPTBYKEY.
Here is a screenshot of the official documentation:

vlinyulumsft_2-1724910082213.png
DECRYPTBYKEY (Transact-SQL) - SQL Server | Microsoft Learn

Of course, if you have any new ideas, you are welcome to contact us.

 

Best Regards,

Leroy Lu

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

Re: How to get POWER BI Import Error Programmatically

$
0
0

Hi  @sarvesh1993 ,

 

It seems to be related to the request information. You can add some try-catch blocks in your code to see the specific error messages. Additionally, check if your method definitions match those in the API package. If they don’t match, the request might not have been sent at all. Finally, make sure the version you are using is not too old, as it might be incompatible with the new version.

NuGet Gallery | Microsoft.PowerBI.Api 4.20.0

 

Best Regards,

Liu Yang

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

Re: How to get POWER BI Import Error Programmatically

$
0
0

We have (4.5.0.0) Version of Microsoft.PowerBI.API  installed ,there is no change in Import Model in latest 4.20.0.0 also. Problem is in Import Model class there is no property exposed which provides me Error Info about Import . It has a property of ImportState which return status as succedded ,Publishing and Failed but I need to Know the Cause of the ImportState Failed Error.

 

Adding try catch is not helpful as it does not throw exception when Import is Failed ,it Just returns ImportState as Failed .I refered the GitHub Project also regarding this Microsoft API Model .There is no exposed property which provides us ImportError (PowerBI-CSharp/sdk/PowerBI.Api/Source/Models/Import.cs at master · microsoft/PowerBI-CSharp · GitHub)

 

Import import = await io.PostImportWithFileAsyncInGroup(WorkspaceID, file, "FILENAME" ImportConflictHandlerMode.CreateOrOverwrite, cancellationToken: token);

 

import.ImportState --> failed no exception  , (no exposed property to understand importerror)

Re: Zoom Power BI report

$
0
0

Hi @Aryna ,

 

Thank you so much for sharing.
You can mark some of the responses in the posting as SOLUTION. Once the posting is MARKED, more customers with that need will see this posting.

 

Best Regards,
Rico Zhou

 

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


Re: Show and Hide Shapes or Buttons based on conditions

This visual has exceeded the availiable resource

$
0
0

This visual has exceeded the availiable resource. try filtering to decrease the amont ofdata display on power bi Matrix vissual.

Please advise way to display millions of rows or any selection to minimize display size

Re: Embedding paginated reports error: Unable to render paginated report

$
0
0

I'm also facing the same issue while embedding a Power BI report in Salesforce. If you've found a solution, could you please share how you fixed it? It would be really helpful to understand how you resolved the token generation issue. Thanks in advance!

Re: This visual has exceeded the availiable resource

$
0
0

Hi @Ashe_-123 , This error means, the query taking loger than 225 secs or is taking too much memory. Inefficient dax calculation, Filtering whole table than a specific column can cause this problem too. You are bringing a huge amount of data into the visualization. The solution for this issue is to reduce the unnecessary amount of data you are bringing into the visualization. You can reduce the size of underlying table by grouping method if possible, or can filter a specific column of the table. 

 

 

Hope this Helps!!
If this solved your problem, please accept it as a soltuion!!

 

Best Regards,
Shahariar Hafiz

Re: Report If data missing for more than 3 concecutive dates

$
0
0

What if I want to list the dates which are missing 

Result should be 

CityCompanySiteDates Missing
JuarezBPIJPP8/8/2024
JuarezBPIJPP8/9/2024
JuarezBPIJPP8/10/2024
JuarezHopkinsHopkins Manufacturing8/8/2024
JuarezHopkinsHopkins Manufacturing8/9/2024
JuarezHopkinsHopkins Manufacturing8/10/2024
JuarezHopkinsHopkins Manufacturing8/11/2024
JuarezTricoPlanta 18/7/2024
JuarezTricoPlanta 18/8/2024
JuarezTricoPlanta 18/9/2024
Viewing all 48040 articles
Browse latest View live


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