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

Re: In power BI merge the cells having the same value inside table

$
0
0

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

Hi, @Shraddha_sathe 


Regarding the issue you raised, my solution is as follows:
1.First I have created the following table and the column names and data are the data you have given:

vlinyulumsft_0-1724653413055.png

2.Add the index column to the powerquery:

vlinyulumsft_1-1724653413056.png

3.Create calculated column references:

MNE1 = VAR FIRST=CALCULATE(MIN('Table'[Index]),ALLEXCEPT('Table','Table'[App MNE])) RETURN IF('Table'[Index]=FIRST,'Table'[App MNE],BLANK())MNE1 = VAR FIRST=CALCULATE(MIN('Table'[Index]),ALLEXCEPT('Table','Table'[App MNE])) RETURN IF('Table'[Index]=FIRST,'Table'[App MNE],BLANK())

4.Here's my final result, which I hope meets your requirements.

vlinyulumsft_3-1724653574263.png

 

5.Here are some posts that are similar to your problem:
Solved: How do I replace duplicates values with zero in a ... - Microsoft Fabric Community

Solved: Group by ID Skip Aggregation - Microsoft Fabric Community

 

Please find the attached pbix relevant to the case.

 

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: Import SVG from local file to Power BI custom visual

Re: power bi custom visual facing one issue for Y axis data load

Re: How to get Previous Month Year

$
0
0

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

 

Here are the steps you can follow:

1. Create measure.

Flag = var _maxdate= EOMONTH( TODAY(),-1) var _mindate= EOMONTH( TODAY(),-2) return IF( MAX('Table'[Date]) >_mindate&& MAX('Table'[Date])<=_maxdate,1,0)Sum_Measure = SUMX( ALLSELECTED('Table'),[rand])

2. Place [Flag]in Filters, set is=1, apply filter.

vyangliumsft_2-1724659535143.png

3. Result:

vyangliumsft_3-1724659535147.png

 

 

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 combine two graphs with the same data source into one graph

$
0
0

You know.. requirements from clients... so am looking for a way to implement this.

If you have any ideas to share, it would be great. Thank you a lot.

Re: Cannot access Admin APIs with service principal via ADF

$
0
0

Hi  @cmjcf ,

 

According to the documentation, when using the PBI admin REST API with service principal authentication,” When running under service prinicipal authentication, an app must not have any admin-consent required premissions for Power BI set on it in the Azure portal. ”

vyangliumsft_0-1724662423828.png

Admin - Datasets GetDatasetUsersAsAdmin - REST API (Power BI Power BI REST APIs) | Microsoft Learn

According to my understanding, this means you can try removing all PBI-related API permissions, keeping only the tenant settings enabled, and then check if the API can successfully run using service principal authentication

 

vyangliumsft_1-1724662423836.png

 

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: Import SVG from local file to Power BI custom visual

$
0
0

Hi!
This article does not help me to find answer to my problem. I need to import a picture PNG or SVG file from local folder. Picture like companys logo.

However the article was super informative, and I thank you for that. I will use this reference in my future project!

However problem still open.

Need help on multi tenancy

$
0
0

Hi ,

 

  Initially we created the reports and embedded in our application . Currently, what we have to do is multi tenancy. As of now, we have 50 customers and in future the numbers can grow. Each 50 customers will have seperate data with the same data structure. What we have to do is if the user from different company logged in the application - they have to see the data from their company alone. Each company will have seperate database and we can't combine into one. Please suggest the ways to implement . Thanks in advance.


Re: How to combine two graphs with the same data source into one graph

$
0
0

Sometimes it is okay to push back on the requirements and offer alternatives.

Re: To get Power BI API Access Token dynamically, make sure to do this

$
0
0

Hi,
In my case App registration was done not by me, but Tenant.ReadAll is enabled (so as I understand would need to request to disable that) -- what access should be left?
I tried using this in Power Query (I have MFA enabled account) and I get this (does not let me to proceed with anonymous)

MargaritaGG_0-1724676269971.png

Can you please advise?

Re: To get Power BI API Access Token dynamically, make sure to do this

$
0
0

Hi, can you please advice what access should be assigned for this to work?

PBI API Rest: endpoints are returning empty values

$
0
0

[Python code]


base_url = 'https://api.powerbi.com/v1.0/myorg/'
header = {'Authorization':f'Bearer {access_token}'}
dedicated_groups = 'groups'
groups = requests.get(base_url + dedicated_groups, headers=header)

try:
    groups = json.loads(groups.content)
    print(json.dumps(groups, indent=4, sort_keys=True))
except Exception as e:
    print('\nRequest failed:', e)

pd.concat([pd.json_normalize(x) for x in groups['value']])

 

And it returns:

<Response [200]> 
{
"@odata.context": "
https://wabi-brazil-south-b-primary-redirect.analysis.windows.net/v1.0/myorg/$metadata#groups",
"@odata.count": 0,
"value": []
}

 

This problem occurs in multiple endpoints, get_dashboards.

But it works in the get_capacities endpoint.

 

Background:

I have the admin account called "dados", under this account I have the account "dashboards".

All of my dashboards are hosted in the "dashboards" account spread throughtout 4 workspaces (groups).

 

All of the access were granted to both accounts in the PBI Admin portal, both for workspaces and dashboards. Also in the Admin Portal was granted access to the API.

 

Can someone help me?

Re: MS Fabric Spark WriteStream:"WorkspaceId and ArtifactId should be either valid Guids or val

$
0
0

Hi @v-rzhou-msft , thank you for the help, How can I do it, as the spark.readstream and writestream does not have this option parameters, did you have any example using sparkstream to add this workspaceID and ArtifactID?

Re: What is the complete output of Get-PowerBIDatasource in Powershell?

$
0
0

@lbendlin @v-linyulu-msft I've been instructed to abandon the DMV query route because something else is in the works on the side of our infrastructure team. Regardless I trust your expertise in that this is the way to pry open a data model and look inside it as I did my own research. So I'm accepting this as a solution.

Re: What is the complete output of Get-PowerBIDatasource in Powershell?

$
0
0

What do they have "in the works"? Scanner API? Purview?


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

$
0
0

Our team is unable to turn on the report setting Personalize visuals now that we've converted our pbix and pbit files to the new PBIR files and adopted git-integrated workspaces.  We've tried to hard-code the personalizeVisuals property in the definition report.json file, and tried removing the localSettings file from .gitignore (see below).  These changes result in a failure to sync branch updates in the workspace.  Git recognizes the changes, but VS Code warns the personalizeVisuals property is not allowed.  Attempting to turn on the Personalize visuals setting directly in the git-integrated workspace does not save and triggers a warning from the workspace that Preview features have some limitations.  Unfortunately, the MS documentation for PBIR limitations does not reference the Personalize visuals setting.  Has anyone else encountered this issue?  Does the community have any suggestions?  Thank you in advance.

report.json adds:
"settings":{

    "personalizeVisuals": true
}

.gitignore deletes:
**/.pbi/localSettings.json

Re: PBI API Rest: endpoints are returning empty values

Re: What is the complete output of Get-PowerBIDatasource in Powershell?

$
0
0

@lbendlin I wish. A very tightly controlled SPA. Even purview is blocked by our internal firewall even though it's Microsoft. Out of my control. Lol.

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

Re: PBI API Rest: endpoints are returning empty values

Viewing all 49225 articles
Browse latest View live


Latest Images

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