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

Re: Unable to Download Self-Study Kit for Power BI Developer in a Day Course

$
0
0

@Kunal_009 Confirmed this. Only thing I can tell you is to leave Feedback on the page and tell them the link doesn't work. I just did that.


Re: How to handle the power BI refresh time limit while having multiple refreshing report request.

$
0
0
I'm trying to add bookmark and refresh the report each time a bookmark added.

Note that "report refresh"  and "semantic model refresh" are different things.

 

What you are looking for seems to be APR (automatic page refresh) and the limits for that are set on capacity level. Talk to your capacity admin.

jdbc connector receives TCP/IP error against the warehouse

$
0
0

Hi, after successfully connection using oauth flow and reciveing a token for scope 
https://analysis.windows.net/powerbi/api/Warehouse.ReadWrite.All

using my access code I can get a refresh code and using that refresh code I can get multiple access codes so that session is working fine and the code is also working to connect to snowflake using azure so I don't think the error is on that side
once I use the same connection for I get 
"The TCP/IP connection to the host pbipwus9-westus.pbidedicated.windows.net\<some id> (redirected from <same some id>.datawarehouse.fabric.microsoft.com), port 1433 has failed. Error: "null. Verify the connection properties. Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. Make sure that TCP connections to the port are not blocked by a firewall."."


the connection propertis are accessToken, encrypt=true trustServerCertificate=true
and connection string jdbc:sqlserver://<SQL connection string> taken from the UI 

benor1470_0-1725182501616.png

the only guess I can find is that TCP/IP is turned off and we're using shared memory that is working for Sql Server but can't work for JDBC

Re: Cannot update Google BigQuery data source credentials using the API

How to get EmbedToken Generated ?

$
0
0

Dear All,

we have difficulty in getting EmbedToken.

1. We can get AccessToken calling https://login.microsoftonline.com/common/oauth2/token   with "grant-type:password"

2. Using AccessToken from first step we

POST https://api.powerbi.com/v1.0/myorg/groups/{groupId}/reports/{reportId}/GenerateToken

3. Altough we give all permissions to the user ,We get

{
    "error": {
        "code": "Unauthorized",
        "message": "Report.Read.All Dataset.Read.All"
    }
}

4. We logged in to https://learn.microsoft.com/en-us/rest/api/power-bi/embed-token/reports-generate-token-in-group#code-try-0

with the user account that we use to get the AccessToken (first step)

5. We are able to get EmbedToken.

 

What would be the difference between the AccessTokens getting at the first and the fourth steps?

Any help appreciated

Regards

Re: Bar chart visual with positive and negative values

$
0
0

I thought so - I have been trying to use a horizontal clustered bar chart.  But I can't make it work.  First, my desired outcome is that all values should be shown as positive when nothing is selected (I have a slicer for the plant names).  What happens is that everything is negative when nothing is selected.  Second, if I select a plant, it will show the negative value (desired outcome) but the rest of the plants are not shown (should be shown as positive values).  

Re: Bar chart visual with positive and negative values

$
0
0

That seems to be a little unusual (A filter does filter stuff, it does not usually show the non-selected items.  If you need that behavior you would use disconnected tables for your filter.) What is the story you are trying to tell with your data?

Re: Bar chart visual with positive and negative values

$
0
0

The visual should show the impact of a downtime of a particular plant and how the other plants can assist in providing the capacity that the unavailable plant needs to provide. 

 


Re: Bar chart visual with positive and negative values

$
0
0

Makes sense.  Use a disconnected table. 

 

What if more than one plant is offline?

Re: Bar chart visual with positive and negative values

$
0
0

the expected bahavior will be the same.

Re: How to get EmbedToken Generated ?

$
0
0

Hi @uaydogdu ,

 

What would be the difference between the AccessTokens getting at the first and the fourth steps?

Firstly, you will get Entra ID Token (Access Token) by Master User (Account and Password) or Service principal as authentication.

Then you will use this access token to get Embed token in below step.

So they are different.

vrzhoumsft_0-1725240506352.png

You may refer to workload and offical blog for more details.

For reference: Permission tokens needed to embed a Power BI app - Power BI | Microsoft Learn

For reference:
Generate an embed token in Power BI embedded analytics - Power BI | Microsoft Learn

As far as I know, here you are using master user (password) as authentication.

I think you need to give permissions as below when you register your Microsoft Entra application.

All of the following, unless a requirement doesn't apply:

  • Report.ReadWrite.All or Report.Read.All
  • Dataset.ReadWrite.All or Dataset.Read.All
  • Content.Create, required if the allowSaveAs flag is specified in GenerateTokenRequest

For reference:

Embed content in your Power BI embedded analytics application - 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: Dax calculate monthy and yearly rent payments with variables

$
0
0

Hi  @Gdv ,

You can try checking R1-R30 - Transform - Unpivot Columns in Power Query.

vyangliumsft_0-1725243591268.png

Then create a calculated column showing the Index of the grouping, and use measure to implement the metrics for each month's totals.

Create calculated column:

Index = var _len=LEN('2ProjectData'[Attribute]) var _find=FIND("R",'2ProjectData'[Attribute],1) var _right= VALUE(RIGHT([Attribute],_len-_find)) return _right

vyangliumsft_1-1725243591269.png

Create Measure:

Measure = SUMX( FILTER(ALL('2ProjectData'), '2ProjectData'[Licensee]=MAX('2ProjectData'[Licensee])&&'2ProjectData'[Index]<=MAX('2ProjectData'[Index])),[Value])

vyangliumsft_2-1725243620800.png

If the above results do not meet your expectations, can you express the expected results in the form of a picture, we can help you better

 

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: jdbc connector receives TCP/IP error against the warehouse

$
0
0

Hi,@benor1470 

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

1.First of all, there is the "check if TCP/IP is enabled" you mentioned: make sure that SQL Server is configured with the TCP/IP protocol and is listening on port 1433. You can verify this in SQL Server Configuration Manager as follows:

vlinyulumsft_0-1725244051044.png

vlinyulumsft_1-1725244051045.png

2.Second, you can try using the telnet command to test the connection:

vlinyulumsft_2-1725244078609.png

What you may want to note is that you need to turn on the following settings in advance:

vlinyulumsft_3-1725244078610.png

Here is a screenshot of the official document:

 

vlinyulumsft_4-1725244093114.png

 

 

Troubleshooting connectivity - JDBC Driver for SQL Server | Microsoft Learn

3.Then, make sure your network configuration allows TCP/IP connections from the client to SQL Server. If you're using a VPN or proxy server, you may need to make configuration adjustments accordingly.

 

4.Finally, make sure that the SQL Server instance is running and can accept external connections. You can check the status of your instance through SQL Server Management Studio (SSMS).


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.


 

Embedding a Power BI page into another Power BI report

$
0
0

Can I check if we can embed a Power BI page into another Power BI report ?
Basically, there is one page in one Power BI report, and I want to show that particular page in another report.
So instead of recreating all visuals/measures, can I show the same page in another report?

Please advice.

Re: Color Palette not working as expected.


Get the data of the user metrics report

$
0
0

Hello,

 

Is that possible to get the data of the user metrics report ?

I talk about this report :

BendeLyon_69_0-1725261716896.png

 

 Thank you

Re: jdbc connector receives TCP/IP error against the warehouse

$
0
0

Thank you but non of those helped
1) first since it's a fabric database I can't access it's config to change TCP/IP config

benor1470_0-1725263431370.png

as far as I can see this tool can only be used to make local connections

2/3) I can telnet to the public address, the issue isn't with the network connection on my side
4) I managed to connect using SSMS

Re: How to get EmbedToken Generated ?

$
0
0

Dear Rico ,

First of all, Thank you very much for your quick response. As far as I understand you explain the differences between Entra ID Token and Embed Token and how to obtain them.

 

My question was , we get Entra ID Token (Access Token)  by 2 ways  with the same master user account. First Way cannot generate Embed Token and the second way does generate, What is missing with first way?

 

1st Way.  Calling Api (https://login.microsoftonline.com/common/oauth2/token )

2nd Way.  Login Api Playground https://learn.microsoft.com/en-us/rest/api/power-bi/embed-token/reports-generate-token-in-group

Copied "Authorization" .

uaydogdu_1-1725266949104.png

Best Regards,

 

Re: Bar chart visual with positive and negative values

$
0
0

Please provide sample data that fully covers your issue. In usable format (not as a screenshot).

Re: Embedding a Power BI page into another Power BI report

Viewing all 49205 articles
Browse latest View live


Latest Images

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