Filter Power BI reports using a URL query string

Поділитися
Вставка
  • Опубліковано 21 сер 2024

КОМЕНТАРІ • 117

  • @hariviggu
    @hariviggu 5 років тому +11

    Hi Adam, You guys are doing an awesome job.
    One small correction. You can have spaces in the table and field name which can be replaced by this character _x0020_.
    Second correction - it can filter on multiple fields by inserting a "and" between the fields
    This hack works like a charm.
    Cheers,
    Hari

    • @GuyInACube
      @GuyInACube  5 років тому

      You are correct. We updated the video and mentioned those new capabilities. Here is the link: ua-cam.com/video/8ASw-J0PuN8/v-deo.html. Thanks for watching.

  • @rrve
    @rrve 7 років тому +1

    When setting a filter via URL, it is worth mentioning that if you have a filter control on the report that is saved with a value selected, then the report will ignore the URL directive: the saved filter will take precedence. For example, a report has a filter called Region with two values: US and EMEA. If you save the report with US selected and try to pass a URL parameter for EMEA (?filter=MyDataset%252FRegion%20eq%20%27EMEA%27), the report will ignore the URL and display NA results. You can save the report with the filter not set to anything and it will work, however the value you pass will be the only value visible in the filter (as if you had a Page-level filter set). In this example, the filter control would show EMEA as the only option--no "NA" option). All of this makes passing parameters in URLs a little quirky because you have to optimize your whole report around it.

    • @GuyInACube
      @GuyInACube  7 років тому

      Thanks for adding that Hymie! I hadn't actually paid attention to that aspect. I will also make sure that piece gets updated in the official docs as well as a limitation.

  • @apurvajha7564
    @apurvajha7564 10 місяців тому

    Thank you so much. You describe things more clearly. Amazing 🙂

  • @raviteja7548
    @raviteja7548 4 роки тому +1

    Hi All, I have a question on passing multiple values in a parameter , for example in this video explained that Passed one value 'NC' in URL and i would like to add multiple values NC and PA also
    how to pass multiple values in URL.

  • @SQLTalk
    @SQLTalk 7 років тому +1

    Excellent. Thanks for the clear explanation. Got this working.

  • @rustice2
    @rustice2 7 років тому

    I started out with Power BI just a few months ago and it is transforming the way our company shapes data. I'm not an expert, for many years I worked at a user level on the database side, mostly exporting data to Excel and running Pivot Tables, sometimes writing queries, and all of that.
    I would love to go deeper and learn more about Power BI and was wondering if you offer or recommend any courses.
    Thanks

    • @GuyInACube
      @GuyInACube  7 років тому

      Microsoft has a free course on EdX, but I don't know that I would consider that deeper. May be worth a look, though. It is labeled as introductory, though. www.edx.org/course/analyzing-visualizing-data-power-bi-microsoft-dat207x-4
      You may want to check out folks like powerpivotpro.com, sqlbi.com or pragmaticworks.com for actual course material. There are different blogs and youtube channels that offer varying array of items, though.

    • @rustice2
      @rustice2 7 років тому +1

      I checked out the EdX and it really seems introductory for me - although sometimes it's a good idea to go back and learn well the basic concepts.
      But there is a plenty of options on the other three links you sent. :)
      Thanks a lot!

    • @GuyInACube
      @GuyInACube  7 років тому

      Yeah I was worried about that. I do agree sometimes it is good to get back to basics. Glad the other links were of help.

    • @TheBackyardSocial
      @TheBackyardSocial 7 років тому

      Hi Gabriel - did you end up looking into any of the content listed above? If so, which was most useful to you?

  • @rachellemoreau4726
    @rachellemoreau4726 4 роки тому +2

    Hi, this functionnality is available for on-premise version ?
    Thank you

  • @mshparber
    @mshparber 7 років тому

    4:17 Awesome suggestion! I am going to implement this right away! Thanks a lot!

    • @GuyInACube
      @GuyInACube  7 років тому

      Awesome! Glad it helped out.

  • @jburchel
    @jburchel 3 роки тому

    Thank you! I needed to do this and it gave me exactly what I needed. 🥰 Nice!

  • @AndrewMackay77
    @AndrewMackay77 7 років тому +1

    used this before but it does not work with in a content pack that's shared as the I'd of the report changes...still very useful in some cases.

    • @GuyInACube
      @GuyInACube  7 років тому +1

      Interesting. Maybe because the Report GUID changes? I'll have to play with that a little more. Hadn't tried it with content pack reports.

  • @billbriggs3268
    @billbriggs3268 7 років тому +1

    Great info, thanks!

    • @GuyInACube
      @GuyInACube  7 років тому

      Most welcome Bill! Thanks for watching!

  • @madhaviravoori6466
    @madhaviravoori6466 7 років тому

    Nice video, Thanks for sharing.
    I have a question on parameters: how do I delete/remove the parameter that I linked to the field?

  • @leanh2770
    @leanh2770 6 років тому

    Thank you!
    This one works great on service. But do you know how to make it possible in the app? Or will it be possible through the app (mobile)?

  • @venkateswarareddymarella4955
    @venkateswarareddymarella4955 7 років тому +1

    Do we have any alternative for filtering power BI Reports for a web published URL ?

    • @FredCarneiro
      @FredCarneiro 6 років тому +1

      I'd like to know it too. Did you get any news?

  • @TheFabdragon
    @TheFabdragon 7 років тому +1

    Does this feature works in Power BI Server Report? thanks

    • @GuyInACube
      @GuyInACube  7 років тому

      Not currently. It is being worked on though. Don't have a timeline.

  • @rohtashgoyal
    @rohtashgoyal Рік тому

    In that case user can change the URL's query string part to see report with different filter, even though we don't want him to see report with other filter values? anyway to hide query part of string or generate an alias url?

  • @jonaskarlsson477
    @jonaskarlsson477 Рік тому

    You talk about the tile url
    is there a way to filter out so i just see one spesefic visual objekt ? like a table or a circel diagram i just the url string?

  • @4pao03
    @4pao03 7 років тому +1

    Hi Adam, Thanks for this tip. There seems to be a limitation to this if not *all* visualizations on the report section have valid data returned from the filter. I have 4 visuals. When I apply my filter to each of them individually, 3 of them return data and 1 doesn't so when I apply the filter to the report URL, all visuals come back blank. Is that what you'd expect?

    • @GuyInACube
      @GuyInACube  7 років тому +1

      hmmm haven't run into that myself. I will have to take a look at that behavior.

  • @warinwanigasuriya8515
    @warinwanigasuriya8515 2 місяці тому

    Can we use this with the embedded report on a company site? We want to restrict location when a user sign in to the website and the location is defined in the URL.
    Would having the URL in this template allow the filter to work?

  • @toddward4756
    @toddward4756 Рік тому

    I love this idea and would love to use within SharePoint Online embedded report. It doesn't seem like this works with embedded reports. Please tell me I'm wrong.

  • @bilhanbel3487
    @bilhanbel3487 Рік тому

    Can we show the filter parameter has been sent in url link in a text visual in the power bi report ?

  • @davidliebman9933
    @davidliebman9933 7 років тому

    Awesome post... I'm wondering if I can use this technique to link to another page in the same report to show detail records. Thoughts?

    • @GuyInACube
      @GuyInACube  7 років тому

      You can, as you can have a unique URL for the page sections. Although This was made before the bookmark features were showed off at Data Insights Summit. Although they aren't released yet. Those will make it a lot easier.

  • @ahmadreza5777
    @ahmadreza5777 6 років тому

    help please,
    I still can't apply the filter to the visualization, what kind of visualization that automatically connect to URL filter or what should I do to the visual to connect it? it's my second days with power BI

  • @mahimabedi4154
    @mahimabedi4154 7 років тому

    I tried this, it worked! but I used a filter which was already in the filter pane, and I notice that url filter creates another filter in the report filter pane, instead of using the filter which was already in the pane. Any idea how to fix this?

  • @tbanchie
    @tbanchie 3 роки тому

    Is there any workaround for 'Field name can't have spaces' ?

  • @prawinnavara1496
    @prawinnavara1496 7 років тому

    Hey this is for navigation from one report to other. if a link is stored in backend table and shown up on the report as a icon and when clicked it's opening in a new tab. is there any way to supress and open link in same page

  • @imkoolkrab
    @imkoolkrab 5 років тому

    Thank you for the above example. It's great.
    I am trying to call tab2 from tab1 in the same report. tab1 uses 15 KPI visual to have an executive summary. I am looking for onClick event on each so it passes 2 parameters to call tab2.
    I am using your example above. It helps partially. In my tab2 I have slicers. It seems the value is passed correctly but slicer still shows default value. am I missing something?

  • @vilenmoodley1390
    @vilenmoodley1390 4 роки тому

    Hi can we url filter from power bi service to power bi report server on premise? Please advise

  • @viragjagtap1335
    @viragjagtap1335 4 роки тому

    Is it possible to pass the data source (API url) as a query string parameter?

  • @jaimito0990
    @jaimito0990 7 років тому

    I'm having trouble doing this in a Group. no problem in my workspace, but won't work on a group, ¿did you resolve this?

  • @HillChris1234
    @HillChris1234 4 роки тому

    But I can't pass a value to a parameter?

  • @aowefmkawlekfwef
    @aowefmkawlekfwef Рік тому

    Hey great video I did get this working when it's working when I pasted that query string into a Web browser however it's not working when I try to pull it into a poweramp for some reason it's really odd and I've seen it work for other people and videos on poweramps but for some reason mind isn't doing a filter

  • @micualexandruioan
    @micualexandruioan 6 років тому

    Thanks for the explanation, but does it work for the embedded report URL ?

    • @GuyInACube
      @GuyInACube  6 років тому

      This specific approach doesn't work for Embedded. You can use the JavaScript API to set filters though.

  • @mubarakadigun5203
    @mubarakadigun5203 3 роки тому

    This doesn’t seem to work for Public reports. What is the solution ?

  • @bassplayer6
    @bassplayer6 7 років тому

    Just fyi. You mentioned "+" as concat, but the dax on the screen has the valid "&" instead.

    • @GuyInACube
      @GuyInACube  7 років тому +2

      Yeah, I said it wrong. The & is correct :) caught that when I was editing the video.

  • @sumaiyatasnim102
    @sumaiyatasnim102 4 роки тому

    Is there any way to decode web URL and get only the page name?

  • @guillifr
    @guillifr 3 роки тому

    Hi Adam, I’m using that syntax to filter my report, but my report isn’t filtering. Instead it’s bring the filter to the screen with a warning sign and still displaying all values. My data is all text and there is no space in between. My data is in SSAS and it’s all working on premises. Is that works on premises? Is there any thing I can change in the PBIRS set up to make it work?
    Thanks

  • @palavaikrishnateja7149
    @palavaikrishnateja7149 7 років тому

    You are awesome :)

  • @drdcarlos
    @drdcarlos 7 років тому

    This is really an interesting functionally. Of course it would be awesome if more parameter could be sent without having to concatenate the field. Additionally, it would be even better if it would accept the table and/or column name to have space in it (I use SSAS as data source).
    Anyway, I've tested this on SSRS vNext and I wasnt able to send filters via URL. Do you know if this is on the radar?

    • @GuyInACube
      @GuyInACube  7 років тому

      It is not available in the current technical preview. I haven't heard if this specific functionality will be there in the future. I'll keep my eye out though and report out if it does end up in there.

  • @triparnaray
    @triparnaray 4 роки тому

    Hi Patrik, its not working any more. Some changes in recent PBI version could be seen. In Edge browser in the browser it shows ctid now whereas in other browsers I don't. earlier ctid was not there. filter column used to get added in the filter pane and data was filtered, which is not the case presently. Please help urgently.

  • @rassten
    @rassten 6 років тому +1

    This would be good, if it could with "Publish to web"

    • @GuyInACube
      @GuyInACube  6 років тому

      Thanks for watching Sten! I don't know that that will ever be an option with Publish to Web.

    • @sachaalter851
      @sachaalter851 4 роки тому

      @@GuyInACube Hi! Do you know if theres a way of doing it now? I need to filter my reports based on who is logged in on my website and the report is showing on an , is there any way of doing that?

    • @chavisingal3647
      @chavisingal3647 4 роки тому

      @@sachaalter851 Hi Sacha- I had a similar use case, were you able to find any resources for this?

  • @vinci7788
    @vinci7788 4 роки тому

    What if my value which I needed to filter contains a '+' . How can I parse them so it works in the URL? Currently its parsed as %20 which is the same as blank spaces

    • @guillifr
      @guillifr 3 роки тому

      docs.microsoft.com/en-us/power-bi/collaborate-share/service-url-filters#special-characters-in-url-filters

  • @anujain3821
    @anujain3821 2 роки тому

    Hi Adam, I have an SSRS report which comprises of a button, upon the click of a button the user is redirected to another report, the first report passes at least 5 parameters into the second report. I am now trying to migrate the report into Power BI and fix the button function as the "Go to report" option is unavailable in Power BI. Could you please help how can I pass those multiple parameters into the second report using the "Go to URL" option?

  • @granttessitore
    @granttessitore 7 років тому

    Can you pass values based on the user who is viewing the dashboard? Similar to dynamic reporting in SFDC?

    • @GuyInACube
      @GuyInACube  7 років тому

      I suppose you technically could depending on how you wrote the value being passed into the filter. If it is originating from a DAX statement, you would have to code it that way based on the user. If you were embedding the report, you would have much more control of the filters by way of the JavaScript API. I wouldn't use what you are suggesting as a security measure though as they can always just go directly to app.powerbi.com and see the data.

    • @adrianobiagiotti8337
      @adrianobiagiotti8337 4 роки тому

      Have u try to pass dynamic user as value?

  • @sherrysethi839
    @sherrysethi839 7 років тому

    heya ! This is great info, however I am unable to add a custom column that contains url which I am building using Custom Column Formula. It keeps giving me an error - "You cannot apply & and to type Text and Number." How should I fix this ?

    • @GuyInACube
      @GuyInACube  7 років тому

      Convert the number to text - Text.From(). This will allow you to do the concatenation.

  • @user-se8fm4li8p
    @user-se8fm4li8p 2 роки тому

    What about reports publshed to web?

  • @venusura6947
    @venusura6947 4 роки тому

    Hi Assam, this is awesome... does it works for multiple tables as I have got to filter multiple tables.

    • @mrunalitembhurne9842
      @mrunalitembhurne9842 3 роки тому

      Even I have to filter two field from 2 tables how to do that?????

  • @moulik2341
    @moulik2341 5 років тому

    Hi , what if our column or table name have space?, how to mention it in URL

    • @nimamaleki1595
      @nimamaleki1595 4 роки тому

      Replacing the space with _x0020_ seems to work

  • @simranpreetsingh5502
    @simranpreetsingh5502 5 років тому

    Hi, my Power BI redirects me to the Report URL and the result is an unfiltered report

    • @martynepoffpoff
      @martynepoffpoff 4 роки тому

      I have same problem. Have you solved that problem? Even if I am filtering my reporot in PBI workspace ther Url is not changing.

  • @nachoorozcog
    @nachoorozcog 6 років тому

    Is it posible to use the URL filter in to the url sharing as embedded power bi report ?

    • @GuyInACube
      @GuyInACube  6 років тому

      Technically yes, but you are the one that has to handle the query string parsing within your app where the embedding is occurring. If you are using something like the SPO web part, it wouldn't do anything with the query string parameters.

  • @lhsevero
    @lhsevero 7 років тому

    Hi Adam. Liked very much this video and i´m trying to use this but its not working. Do I need a pro account to use this feature?

    • @GuyInACube
      @GuyInACube  7 років тому

      This is not a "Pro" item. Typically I have found that if it isn't working, you are probably missing one of the requirements - either missing the ' around the value, or the table/field names aren't cased correctly based on how they are in the model itself. Maybe double check that?

    • @lhsevero
      @lhsevero 7 років тому +1

      I do not know what I was doing wrong, but today it works! :-)
      Thank you Adam.

    • @GuyInACube
      @GuyInACube  7 років тому

      :) welcome to the cloud.
      Not sure what it was.

  • @paraspatel4879
    @paraspatel4879 4 роки тому

    Doesn't work for me as soon as I add ?filter=Table/Field eq 'Value' (same name as Dataset) it does not work, it throws a "Content not available " message and in developer mode (F12) it shows this - DevTools failed to parse SourceMap: app.powerbi.com//scripts/interact.min.js.map

  • @willem8594
    @willem8594 Рік тому

    Hi Everybody. I Need to embed a report in an I-frame using public access publishing. Any thoughts on how I can use the URL in which the i-frame is published as a parameter to either filter my dataflow or to use it as part of my power-query in my data source?

  • @123jamalq
    @123jamalq 7 років тому

    Hi Adam, Your videos are very useful and I learnt a lot. I have a problem that I want to apply filter on a particular page whereas I have 10 pages and want to share with someone. Please help me in this respect. Regards, Jamal Qamar

    • @GuyInACube
      @GuyInACube  7 років тому

      Unfortunately, the URL filtering affects the dataset itself which in turn affects the entire report, not just a single page. If that particular table, and associated relationships, were unique to that page only, that is a way to kind of hack it. You could do that using calculated tables and make copies of the data. Kind of a pain, but it is one way to do it.

  • @robofski
    @robofski 7 років тому

    Really useful tip, thanks. FYI, it appears not to work in the Power BI iOS app, will take you to the correct report but not apply the filter :-(

    • @GuyInACube
      @GuyInACube  7 років тому

      Yes, that is a current limitation. It doesn't work with the mobile apps.

    • @rdub9001
      @rdub9001 2 роки тому

      @@GuyInACube do you happen to know if this has been fixed?

  • @TheUsamawahabkhan
    @TheUsamawahabkhan 7 років тому +3

    Will it work with web published URL ?

    • @GuyInACube
      @GuyInACube  7 років тому +1

      I just tried it and it doesn't appear to work :(

    • @erantdo
      @erantdo 7 років тому

      too bad :(

    • @FredCarneiro
      @FredCarneiro 6 років тому

      I'd like to know it too. Did you get any news? Thx :)

    • @strategytechnology5633
      @strategytechnology5633 6 років тому

      any updates for this "Will it work with web published URL?"?

    • @130nk3r5
      @130nk3r5 5 років тому +2

      Nope ... does not work

  • @erickrodriguezlopez4942
    @erickrodriguezlopez4942 3 роки тому

    does anyone knows how to do this on embed reports links? :(

  • @joshblackman4910
    @joshblackman4910 7 років тому

    Very frustrated with this functionality. While this works in the Power BI Service it does not work through the IOS app. The Power BI program has not kept these two environments in sync for this functionality.

    • @GuyInACube
      @GuyInACube  7 років тому +1

      Yes this currently only works with the web browser version. I'm curious how you would expect this to work with the iOS app as there is not an URL available.

  • @VikingGuard
    @VikingGuard 7 років тому

    u can't set a custom url in content packs

    • @GuyInACube
      @GuyInACube  7 років тому

      Thanks for the info! I didn't try this with content packs. That kinda makes sense as you can't edit the dashboard and it is read only. Probably if you personalize it?

  • @pikoro1025
    @pikoro1025 5 років тому

    Hi!! How can I do this with a generated link?

    • @GuyInACube
      @GuyInACube  5 років тому

      What do you mean by generated link? Do you mean a URL created via DAX?

    • @pikoro1025
      @pikoro1025 5 років тому

      @@GuyInACube Tks, it work with web published URL ?

  • @santoshkisl
    @santoshkisl 7 років тому

    HI

  • @mathijs9365
    @mathijs9365 7 років тому

    Whats the point of this