How To Add SQL Stored Procedure With Parameter In Power BI Real World Examples - TAIK18 (14-10)

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ม.ค. 2025

ความคิดเห็น • 66

  • @ajojoy8449
    @ajojoy8449 4 ปีที่แล้ว

    Is there any way we can send enum value for the string parameter. Say I have table Country having 2 columns Country and Country ISO Code. In Parameter I pass Country and the corresponding Country ISO Code should be passed as parameter to a stored procedure in sql. This is to dynamically run the stored procedure based on the parameters

    • @taik18
      @taik18  4 ปีที่แล้ว

      Yes you can.. using '"&value here&"' , email me if u need clarity.. mohammedadnant@gmail.com

  • @jenniferalexagutierrezhern2464
    @jenniferalexagutierrezhern2464 4 ปีที่แล้ว +2

    Thank you very much, it helped me a lot for my work
    =)

    • @taik18
      @taik18  4 ปีที่แล้ว

      Glad you liked it... Thanks for your feedback...

  • @hanguye8228
    @hanguye8228 3 ปีที่แล้ว +1

    so touching for an excellent video

    • @taik18
      @taik18  3 ปีที่แล้ว

      Thank you so much for your feedback 🙂

  • @walkwitharnab
    @walkwitharnab 3 ปีที่แล้ว +1

    This is really great information. Thanks man

    • @taik18
      @taik18  3 ปีที่แล้ว

      Glad you liked it

  • @srirambharat9572
    @srirambharat9572 4 ปีที่แล้ว +1

    Thank you very much!

    • @taik18
      @taik18  4 ปีที่แล้ว

      You are welcome

  • @diemnguyen9564
    @diemnguyen9564 3 ปีที่แล้ว

    Character In the video It's great, I like it a lot $$

  • @abcxyz6606
    @abcxyz6606 4 ปีที่แล้ว +1

    How come when I try to create new parameter in manage parameters, it wont let me drop down on the Query box to select a query?
    This is show at 6:15 in vid.
    Thanks, always appreciate there helpful vids

    • @manengg2201
      @manengg2201 3 ปีที่แล้ว

      Even, i too faced this issue... please assist taik

  • @manengg2201
    @manengg2201 3 ปีที่แล้ว +1

    here the parameter used is varchar, but i need to enter an integer... how code in advanced editor will get changed... pls reply

    • @taik18
      @taik18  3 ปีที่แล้ว

      logically Integer can pass as string, string cannot pass as integer, pls try the same way, it should work.

  • @kayalvizhisundaram8448
    @kayalvizhisundaram8448 2 ปีที่แล้ว

    is it possible to pass a slicer selection as a input value to a function or procedure that we access from datasource? i have a requirement where i need to access a function from a database in power bi. Please suggest

    • @taik18
      @taik18  2 ปีที่แล้ว

      Hope this video will help
      th-cam.com/video/1YivcVUXTG0/w-d-xo.html

  • @Im_Thanos
    @Im_Thanos 4 ปีที่แล้ว +1

    That's a great video..Is there a way that this can be used in publised dashboard. Like user can enter the value in dashboard and visual should change accordingly. Kindly help..!

    • @taik18
      @taik18  4 ปีที่แล้ว +1

      Thank you... So far we don't have this option in Power BI service..

  • @prashanthsanke1212
    @prashanthsanke1212 4 ปีที่แล้ว +1

    We give the App to end user and they should be able to change the parameters. May I know how to change the parameters in service account within the App?

    • @taik18
      @taik18  4 ปีที่แล้ว

      SQL stored procedure parameter change is not supported in power BI service..

    • @prashanthsanke1212
      @prashanthsanke1212 4 ปีที่แล้ว

      @@taik18 Thank you!

  • @Vikrantpradhan-p9m
    @Vikrantpradhan-p9m 3 หลายเดือนก่อน

    its a great video, ,
    how can I fetch date from a date slicer as the Parameter??
    please suggest.

  • @lavleenkaur2405
    @lavleenkaur2405 3 ปีที่แล้ว

    can this parameters be updated from power bi service?

    • @taik18
      @taik18  3 ปีที่แล้ว

      Not support so far..

  • @romankultajev3660
    @romankultajev3660 2 ปีที่แล้ว

    Great instruction, Mohammed! In my case I need the query to return results using not one region (Europe, for example), but return results for a large list (over 3000) of regions. Is this possible?

    • @taik18
      @taik18  2 ปีที่แล้ว

      thats a big number, you can filter it in the source itself.

  • @miestudiolm9390
    @miestudiolm9390 3 ปีที่แล้ว

    Hello taik18 i have a problem with the parameters, i will like to pute the value in a filter for example(date value) so the user can check the date that he wants.
    Is possible that?

    • @taik18
      @taik18  3 ปีที่แล้ว

      Yes possible

    • @miestudiolm9390
      @miestudiolm9390 3 ปีที่แล้ว

      @@taik18 can you help me with that?
      I have a store with a parameter but i need to call that parameter from other query, for example
      exec proc_Test where Date = @date
      Then i call that parameter from other querie that contains only dates so when i modify that date from the other query the Store will be refreshed.
      that date paramater will be in a filter for example, i tried everything...can you help me?
      I have Pro license.-

    • @taik18
      @taik18  3 ปีที่แล้ว

      This way is not possible in Power BI service, in desktop it is possible..
      U can use direct query to get only required data.. Or import with filter.
      For this u need view not stored procedure

    • @miestudiolm9390
      @miestudiolm9390 3 ปีที่แล้ว

      @@taik18 yes i did that, but when i put a different date in the other querie(the query with only dates) my main query(the Store) goes blank, :(

    • @taik18
      @taik18  3 ปีที่แล้ว

      I didn't get that, can you pls write me an email.

  • @marthaskjellerup3796
    @marthaskjellerup3796 3 ปีที่แล้ว

    Thanks so much. How do you add filters in the report so we can use this parameter?

    • @taik18
      @taik18  3 ปีที่แล้ว

      unfortunately, parameters we cannot use in Power BI Service, which explained in the video

  • @ajojoy8449
    @ajojoy8449 4 ปีที่แล้ว +1

    Could you please explain on how to add a parameter that is from a list which is again obtained from querying country table in our database.
    Receiving the error "Formula.Firewall: Query 'ER Transactions' (step 'Source') references other queries or steps, so it may not directly access a data source. Please rebuild this data combination."

    • @taik18
      @taik18  4 ปีที่แล้ว

      Check this video might help.. if not pls email me..
      th-cam.com/video/nyb8dC3rtNc/w-d-xo.html

    • @ajojoy8449
      @ajojoy8449 4 ปีที่แล้ว

      @@taik18 Thank you for the link, but its different requirement.
      I have table COUNTRY in BI which is having country details, Country, Currency, Companies (queried from sql server table Country).
      I need to use this Country List & Company List as dynamic parameters for sql stored procedure to get the transactions per country, company based on the parameters I have entered.

    • @taik18
      @taik18  4 ปีที่แล้ว

      Unfortunately till now
      SQL stored procedure parameter is not available on power BI service online...

    • @ajojoy8449
      @ajojoy8449 4 ปีที่แล้ว

      @@taik18 I was referring with PowerBI desktop only

    • @taik18
      @taik18  4 ปีที่แล้ว

      Yes you can , in this video I have shown about single parameter which is dynamic based on user selection. Still not clear pls email me.. mohammedadnant@gmail.com

  • @kapudamodhar1252
    @kapudamodhar1252 4 ปีที่แล้ว

    1 question on Power BI: how to get around privacy setting when referencing a parameter into a SQL query. - I have 2 text parameters: PositionTitle1 and PositionTitle2 - I have a SQL stored procedure asking for 2 inputs: PositionTitle1 and PositionTitle2 - I need to run that Stored Procedure on my SQL database and get the result into data table in Power BI. Please note that Ignoring Privacy Level is not an option. I need to find out how to do it with standard setting because I need to provide my solution to a wide range of users. You can either send me a clear instruction or do it live with me (preferred). I need it soon. Thanks.

    • @taik18
      @taik18  4 ปีที่แล้ว

      In order to run SQL stored procedure on SQL u need to run this on SQL agent. Pls write me email if required in detail
      mohammedadnant@gmail.com

  • @sathishkumar_bhutharaju
    @sathishkumar_bhutharaju 4 ปีที่แล้ว +1

    Hi...,Can u tell how to use Store procedure for "Direct Query" mode in Power BI.
    thanks in advance 😊😊😊

    • @taik18
      @taik18  4 ปีที่แล้ว +1

      Thanks for your query.. sure I will check and get back to you...🙂

  • @jagadeeshpinninti
    @jagadeeshpinninti 3 ปีที่แล้ว

    How to pass date parameter in SQL query instead of store procedure

    • @taik18
      @taik18  3 ปีที่แล้ว

      In SQL use where datecolumn between ' ' and ' '

    • @jagadeeshpinninti
      @jagadeeshpinninti 3 ปีที่แล้ว

      @@taik18 Thanks for reply.
      I'm fetching data using SQL query in Power query, for that I need pass date parameter. Similar like you're passing to SP

  • @tsunamio7750
    @tsunamio7750 3 ปีที่แล้ว +1

    Indian... but good!

    • @taik18
      @taik18  3 ปีที่แล้ว

      Thank you..

  • @husseinabbas2104
    @husseinabbas2104 4 ปีที่แล้ว

    Hi.
    I want to pass 3 parameters not only one ( from date,to date, country)
    Can you make a video about it or reply me it will be well appreciated ♥️

    • @taik18
      @taik18  4 ปีที่แล้ว +1

      Pls check in the comments.. if that doesn't work let me know.. thank you

    • @husseinabbas2104
      @husseinabbas2104 4 ปีที่แล้ว

      @@taik18
      I didn't see anything in the comments related to my question but i think the solution is to add (group as text, country as text ..etc)

    • @taik18
      @taik18  4 ปีที่แล้ว +1

      Yes and in SQL query u have to add
      '"& value here &"' , to add multiple parameter

    • @husseinabbas2104
      @husseinabbas2104 4 ปีที่แล้ว +1

      @@taik18
      Thanks you helped me a lot

    • @taik18
      @taik18  4 ปีที่แล้ว

      It feels happy to hear this.. welcome..

  • @natarajraj7383
    @natarajraj7383 4 ปีที่แล้ว

    This is hard coded.... Do u have any idea about not hardcoding

    • @taik18
      @taik18  4 ปีที่แล้ว

      This is not hard coded.. it is dynamic.. but parameter we can't use in power BI service online..