<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: VBA support (to pass cell value as a dax filter) needed to pull data from power bi to excel in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/VBA-support-to-pass-cell-value-as-a-dax-filter-needed-to-pull/m-p/5180877#M65064</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/585098"&gt;@RoySampad&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;We haven’t received any response as of now. Kindly take some time to review our response, and please let us know if any additional details or clarification are required from our side.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 11 May 2026 12:04:39 GMT</pubDate>
    <dc:creator>V-yubandi-msft</dc:creator>
    <dc:date>2026-05-11T12:04:39Z</dc:date>
    <item>
      <title>VBA support (to pass cell value as a dax filter) needed to pull data from power bi to excel</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/VBA-support-to-pass-cell-value-as-a-dax-filter-needed-to-pull/m-p/5159827#M64995</link>
      <description>&lt;P&gt;VBA support (to pass cell value as a dax filter) needed to pull data from power bi to excel&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2026 09:22:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/VBA-support-to-pass-cell-value-as-a-dax-filter-needed-to-pull/m-p/5159827#M64995</guid>
      <dc:creator>RoySampad</dc:creator>
      <dc:date>2026-04-28T09:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: VBA support (to pass cell value as a dax filter) needed to pull data from power bi to excel</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/VBA-support-to-pass-cell-value-as-a-dax-filter-needed-to-pull/m-p/5160217#M65000</link>
      <description>&lt;P&gt;This should point you in the right direction&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/60158029/update-queries-in-excel-using-vba" target="_blank"&gt;Update queries in Excel using VBA - Stack Overflow&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively you can run the entire query from VBA.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/31070692/vba-reptitive-mdx-query-to-analysis-services" target="_blank"&gt;excel - VBA Reptitive MDX query to Analysis Services - Stack Overflow&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2026 16:38:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/VBA-support-to-pass-cell-value-as-a-dax-filter-needed-to-pull/m-p/5160217#M65000</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2026-04-28T16:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: VBA support (to pass cell value as a dax filter) needed to pull data from power bi to excel</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/VBA-support-to-pass-cell-value-as-a-dax-filter-needed-to-pull/m-p/5177258#M65018</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/585098"&gt;@RoySampad&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please refer to the response shared by&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/100342"&gt;@lbendlin&lt;/a&gt;, along with the provided links they should help guide you toward resolving the issue.&lt;/P&gt;
&lt;P&gt;A common workaround is to use VBA to update a parameter (or cell value), apply it within the query’s filter logic, and then refresh the query or connection.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need any additional details or clarification from our side, please let us know.&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2026 07:00:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/VBA-support-to-pass-cell-value-as-a-dax-filter-needed-to-pull/m-p/5177258#M65018</guid>
      <dc:creator>V-yubandi-msft</dc:creator>
      <dc:date>2026-05-04T07:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: VBA support (to pass cell value as a dax filter) needed to pull data from power bi to excel</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/VBA-support-to-pass-cell-value-as-a-dax-filter-needed-to-pull/m-p/5177303#M65019</link>
      <description>&lt;P&gt;I am trying to execute my DAX Query from VBA code while passing in a date feild from a cell and it's running fine but the number of rows returned is getting truncated. When i run the same DAX query on DAX studio i get arounf 11k rows but the same query returns 6K rows on excel via VBA code. Any guidance on what's causing this would be appereciated.&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2026 08:32:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/VBA-support-to-pass-cell-value-as-a-dax-filter-needed-to-pull/m-p/5177303#M65019</guid>
      <dc:creator>RoySampad</dc:creator>
      <dc:date>2026-05-04T08:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: VBA support (to pass cell value as a dax filter) needed to pull data from power bi to excel</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/VBA-support-to-pass-cell-value-as-a-dax-filter-needed-to-pull/m-p/5177305#M65020</link>
      <description>&lt;P&gt;I am trying to execute my DAX Query from VBA code while passing in a date feild from a cell and it's running fine but the number of rows returned is getting truncated. When i run the same DAX query on DAX studio i get arounf 11k rows but the same query returns 6K rows on excel via VBA code. Any guidance on what's causing this would be appereciated.&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2026 08:32:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/VBA-support-to-pass-cell-value-as-a-dax-filter-needed-to-pull/m-p/5177305#M65020</guid>
      <dc:creator>RoySampad</dc:creator>
      <dc:date>2026-05-04T08:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: VBA support (to pass cell value as a dax filter) needed to pull data from power bi to excel</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/VBA-support-to-pass-cell-value-as-a-dax-filter-needed-to-pull/m-p/5177306#M65021</link>
      <description>&lt;P&gt;I am trying to execute my DAX Query from VBA code while passing in a date feild from a cell and it's running fine but the number of rows returned is getting truncated. When i run the same DAX query on DAX studio i get arounf 11k rows but the same query returns 6K rows on excel via VBA code. Any guidance on what's causing this would be appereciated.&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2026 08:33:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/VBA-support-to-pass-cell-value-as-a-dax-filter-needed-to-pull/m-p/5177306#M65021</guid>
      <dc:creator>RoySampad</dc:creator>
      <dc:date>2026-05-04T08:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: VBA support (to pass cell value as a dax filter) needed to pull data from power bi to excel</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/VBA-support-to-pass-cell-value-as-a-dax-filter-needed-to-pull/m-p/5177307#M65022</link>
      <description>&lt;P&gt;I am trying to execute my DAX Query from VBA code while passing in a date feild from a cell and it's running fine but the number of rows returned is getting truncated. When i run the same DAX query on DAX studio i get arounf 11k rows but the same query returns 6K rows on excel via VBA code. Any guidance on what's causing this would be appereciated.&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2026 08:33:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/VBA-support-to-pass-cell-value-as-a-dax-filter-needed-to-pull/m-p/5177307#M65022</guid>
      <dc:creator>RoySampad</dc:creator>
      <dc:date>2026-05-04T08:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: VBA support (to pass cell value as a dax filter) needed to pull data from power bi to excel</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/VBA-support-to-pass-cell-value-as-a-dax-filter-needed-to-pull/m-p/5177310#M65023</link>
      <description>&lt;P&gt;I am trying to execute my DAX Query from VBA code while passing in a date feild from a cell and it's running fine but the number of rows returned is getting truncated. When i run the same DAX query on DAX studio i get arounf 11k rows but the same query returns 6K rows on excel via VBA code. Any guidance on what's causing this would be appereciated...&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2026 08:34:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/VBA-support-to-pass-cell-value-as-a-dax-filter-needed-to-pull/m-p/5177310#M65023</guid>
      <dc:creator>RoySampad</dc:creator>
      <dc:date>2026-05-04T08:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: VBA support (to pass cell value as a dax filter) needed to pull data from power bi to excel</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/VBA-support-to-pass-cell-value-as-a-dax-filter-needed-to-pull/m-p/5177363#M65027</link>
      <description>&lt;P&gt;Thank you for the detailed explanation. Since the DAX query returns about 11,000 rows in DAX Studio but only about 6,000 rows via VBA in Excel, it seems the issue is with how the data is being retrieved in VBA, not with the query itself.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Issue is often related to the VBA or connection layer. Here are a few things to check&lt;/P&gt;
&lt;P&gt;1. Ensure there are no limits set on the recordset, such as MaxRecords, cursor type, or fetch size if using ADODB&lt;/P&gt;
&lt;P&gt;2. Verify that your VBA code is reading the entire recordset and not stopping before all rows are retrieved.&lt;/P&gt;
&lt;P&gt;3. If you’re using .CopyFromRecordset, make sure it’s writing every row to the worksheet.&lt;/P&gt;
&lt;P&gt;4. Check the connection or provider, as these can affect data retrieval.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Reviewing these points should help identify the cause.&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2026 09:58:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/VBA-support-to-pass-cell-value-as-a-dax-filter-needed-to-pull/m-p/5177363#M65027</guid>
      <dc:creator>V-yubandi-msft</dc:creator>
      <dc:date>2026-05-04T09:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: VBA support (to pass cell value as a dax filter) needed to pull data from power bi to excel</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/VBA-support-to-pass-cell-value-as-a-dax-filter-needed-to-pull/m-p/5177403#M65029</link>
      <description>&lt;LI-CODE lang="markup"&gt;Option Explicit

Private Const PBI_WORKSPACE As String = "XXXXXX"
Private Const PBI_DATASET As String = "XXXXXXXXX"
Private Const INPUT_SHEET As String = "InputControlSheet"
Private Const OUTPUT_SHEET As String = "OutputSheet"
Private Const INPUT_CELL As String = "D3"

Sub PullDataFromPowerBI_UsingYourDAX()

    Dim conn As Object
    Dim rs As Object
    Dim wsInput As Worksheet
    Dim wsOutput As Worksheet
    Dim daxQuery As String
    Dim testDate As Date
    Dim colNum As Long
    
    Set wsInput = ThisWorkbook.Worksheets(INPUT_SHEET)
    Set wsOutput = ThisWorkbook.Worksheets(OUTPUT_SHEET)
    
    ' Validate input date
    If Not IsDate(wsInput.Range(INPUT_CELL).Value) Then
        MsgBox "Please enter a valid date in " &amp;amp; INPUT_SHEET &amp;amp; "!" &amp;amp; INPUT_CELL, vbExclamation
        Exit Sub
    End If
    
    testDate = CDate(wsInput.Range(INPUT_CELL).Value)
    
    ' Build DAX query using the Excel cell date
    daxQuery = BuildDaxQuery(testDate)
    
    ' Optional: print query to Immediate Window for debugging
    Debug.Print daxQuery
    
    wsOutput.Cells.Clear
    
    Set conn = CreateObject("ADODB.Connection")
    Set rs = CreateObject("ADODB.Recordset")
    
    On Error GoTo ErrorHandler
    
    conn.Open _
        "Provider=MSOLAP;" &amp;amp; _
        "Data Source=powerbi://api.powerbi.com/v1.0/myorg/" &amp;amp; PBI_WORKSPACE &amp;amp; ";" &amp;amp; _
        "Initial Catalog=" &amp;amp; PBI_DATASET &amp;amp; ";"
    
    ' Forward-only / read-only
    rs.Open daxQuery, conn, 0, 1
    
    ' Write headers
    For colNum = 0 To rs.Fields.Count - 1
        wsOutput.Cells(1, colNum + 1).Value = rs.Fields(colNum).Name
    Next colNum
    
    ' Fast load to worksheet
    If Not rs.EOF Then
        wsOutput.Range("A2").CopyFromRecordset rs
    End If
    
    wsOutput.Cells.EntireColumn.AutoFit
    
    rs.Close
    conn.Close
    
    Set rs = Nothing
    Set conn = Nothing
    
    MsgBox "Success : Data loaded successfully into " &amp;amp; OUTPUT_SHEET &amp;amp; ".", vbInformation
    Exit Sub

ErrorHandler:
    MsgBox "Error: " &amp;amp; Err.Description, vbCritical
    
    On Error Resume Next
    If Not rs Is Nothing Then
        If rs.State = 1 Then rs.Close
    End If
    
    If Not conn Is Nothing Then
        If conn.State = 1 Then conn.Close
    End If
    
    Set rs = Nothing
    Set conn = Nothing

End Sub


Private Function BuildDaxQuery(ByVal testDate As Date) As String

    Dim y As Long, m As Long, d As Long
    Dim q As String
    Dim dax As String
    
    y = Year(testDate)
    m = Month(testDate)
    d = Day(testDate)
    q = Chr(34)   ' double quote character
    
    dax = ""
    
    dax = dax &amp;amp; "DEFINE" &amp;amp; vbCrLf
    dax = dax &amp;amp; vbCrLf
    
    dax = dax &amp;amp; "VAR __TestDate = DATE(" &amp;amp; y &amp;amp; ", " &amp;amp; m &amp;amp; ", " &amp;amp; d &amp;amp; ")" &amp;amp; vbCrLf
   
   
    dax = dax &amp;amp; "VAR __DateToUse =" &amp;amp; vbCrLf
    dax = dax &amp;amp; "    FORMAT(__TestDate, " &amp;amp; q &amp;amp; "YYYY-MM-DD" &amp;amp; q &amp;amp; ")" &amp;amp; vbCrLf
    dax = dax &amp;amp; vbCrLf

    
    dax = dax &amp;amp; "VAR __DS0FilterTable =" &amp;amp; vbCrLf
    dax = dax &amp;amp; "    TREATAS({ __DateToUse }, 'DATE'[Date])" &amp;amp; vbCrLf
    dax = dax &amp;amp; vbCrLf
    
    dax = dax &amp;amp; "VAR __DS0FilterTable2 =" &amp;amp; vbCrLf
    dax = dax &amp;amp; "    TREATAS({" &amp;amp; q &amp;amp; "UNITED KINGDOM" &amp;amp; q &amp;amp; "}, 'XXXX'[Country])" &amp;amp; vbCrLf
    dax = dax &amp;amp; vbCrLf
    
    dax = dax &amp;amp; "VAR __DS0FilterTable3 =" &amp;amp; vbCrLf
    dax = dax &amp;amp; "    TREATAS({" &amp;amp; vbCrLf
    dax = dax &amp;amp; "        " &amp;amp; q &amp;amp; "XXX - Condition 1" &amp;amp; q &amp;amp; "," &amp;amp; vbCrLf
    dax = dax &amp;amp; "        " &amp;amp; q &amp;amp; "XXX - Condition 2" &amp;amp; q &amp;amp; "," &amp;amp; vbCrLf
    dax = dax &amp;amp; "        " &amp;amp; q &amp;amp; "XXX - Condition 3" &amp;amp; q &amp;amp; "," &amp;amp; vbCrLf
    dax = dax &amp;amp; "    }, 'XXXX'[&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;])" &amp;amp; vbCrLf
    dax = dax &amp;amp; vbCrLf
    
    dax = dax &amp;amp; "VAR __DS0FilterTable4 =" &amp;amp; vbCrLf
    dax = dax &amp;amp; "    FILTER(" &amp;amp; vbCrLf
    dax = dax &amp;amp; "        KEEPFILTERS(VALUES('XXXX'[Data Source]))," &amp;amp; vbCrLf
    dax = dax &amp;amp; "        AND(" &amp;amp; vbCrLf
    dax = dax &amp;amp; "            NOT('XXXX'[Data Source] IN {" &amp;amp; q &amp;amp; "Condition 1" &amp;amp; q &amp;amp; "})," &amp;amp; vbCrLf
    dax = dax &amp;amp; "            NOT('XXXX'[Data Source] IN {" &amp;amp; q &amp;amp; "Condition 1" &amp;amp; q &amp;amp; "})" &amp;amp; vbCrLf
    dax = dax &amp;amp; "        )" &amp;amp; vbCrLf
    dax = dax &amp;amp; "    )" &amp;amp; vbCrLf
    dax = dax &amp;amp; vbCrLf
    
    dax = dax &amp;amp; "VAR __DS0Core =" &amp;amp; vbCrLf
    dax = dax &amp;amp; "    SUMMARIZECOLUMNS(" &amp;amp; vbCrLf
    dax = dax &amp;amp; "        'XXXX'[Reporting Date]," &amp;amp; vbCrLf
    dax = dax &amp;amp; "        'XXXX'[&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;]," &amp;amp; vbCrLf
	
	&amp;lt;ALL OTHER COLUMNS&amp;gt;
	
    dax = dax &amp;amp; "        'DATE'[Date_Calculated]," &amp;amp; vbCrLf
    dax = dax &amp;amp; "        __DS0FilterTable," &amp;amp; vbCrLf
    dax = dax &amp;amp; "        __DS0FilterTable2," &amp;amp; vbCrLf
    dax = dax &amp;amp; "        __DS0FilterTable3," &amp;amp; vbCrLf
    dax = dax &amp;amp; "        __DS0FilterTable4," &amp;amp; vbCrLf
    
    dax = dax &amp;amp; "        " &amp;amp; q &amp;amp; "Position" &amp;amp; q &amp;amp; ", CALCULATE(SUM('XXXX'[Position))," &amp;amp; vbCrLf
    
	&amp;lt;ALL OTHER COLUMNS&amp;gt;
	
    dax = dax &amp;amp; "        " &amp;amp; q &amp;amp; "XXXXXXX" &amp;amp; q &amp;amp; ", CALCULATE(SUM('XXXX'[XXXXXX)]))" &amp;amp; vbCrLf
    dax = dax &amp;amp; "    )" &amp;amp; vbCrLf
    dax = dax &amp;amp; vbCrLf
    
    dax = dax &amp;amp; "VAR __DS0BodyLimited =" &amp;amp; vbCrLf
    dax = dax &amp;amp; "    TOPN(" &amp;amp; vbCrLf
    dax = dax &amp;amp; "        500000," &amp;amp; vbCrLf
    dax = dax &amp;amp; "        __DS0Core," &amp;amp; vbCrLf
    dax = dax &amp;amp; "        'XXXX'[Reporting Date], 1," &amp;amp; vbCrLf
    dax = dax &amp;amp; "        'XXXX'[&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;], 1," &amp;amp; vbCrLf
    
	&amp;lt;ALL OTHER COLUMNS&amp;gt;
	
    dax = dax &amp;amp; "    )" &amp;amp; vbCrLf
    dax = dax &amp;amp; vbCrLf
    
    dax = dax &amp;amp; "EVALUATE" &amp;amp; vbCrLf
    dax = dax &amp;amp; "    __DS0BodyLimited" &amp;amp; vbCrLf
    dax = dax &amp;amp; vbCrLf
    
    dax = dax &amp;amp; "ORDER BY" &amp;amp; vbCrLf
    dax = dax &amp;amp; "    'XXXX'[Reporting Date]," &amp;amp; vbCrLf
    dax = dax &amp;amp; "    'XXXX'[&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;]," &amp;amp; vbCrLf
    
	&amp;lt;ALL OTHER COLUMNS&amp;gt;

    BuildDaxQuery = dax

End Function







&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 04 May 2026 10:55:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/VBA-support-to-pass-cell-value-as-a-dax-filter-needed-to-pull/m-p/5177403#M65029</guid>
      <dc:creator>RoySampad</dc:creator>
      <dc:date>2026-05-04T10:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: VBA support (to pass cell value as a dax filter) needed to pull data from power bi to excel</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/VBA-support-to-pass-cell-value-as-a-dax-filter-needed-to-pull/m-p/5177978#M65034</link>
      <description>&lt;P&gt;Thank you for providing the complete VBA code. The discrepancy in row counts isn’t due to the DAX query itself DAX Studio returns all 11k rows but rather how Excel processes the ADODB recordset. By default, a forward-only cursor may stop early and not return all results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A common fix is to adjust the recordset properties before opening, for example&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;rs.CursorLocation = 3   ' adUseClient
rs.CursorType = 1       ' adOpenKeyset
rs.LockType = 1         ' adLockReadOnly
rs.MaxRecords = 0       ' no row limit
&lt;/LI-CODE&gt;
&lt;P&gt;Additionally, ensure that .CopyFromRecordset isn’t restricted by MaxRows. You can refer to Microsoft’s documentation here:&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/office/vba/api/excel.range.copyfromrecordset" target="_blank"&gt;Range.CopyFromRecordset method (Excel) | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;These adjustments are often suggested when importing larger datasets into Excel and should help you retrieve the full 11k rows from your Power BI dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please adjust these settings on your side and let us know how it works. If anything seems unclear or if I’ve misunderstood, just let us know.&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2026 09:57:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/VBA-support-to-pass-cell-value-as-a-dax-filter-needed-to-pull/m-p/5177978#M65034</guid>
      <dc:creator>V-yubandi-msft</dc:creator>
      <dc:date>2026-05-05T09:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: VBA support (to pass cell value as a dax filter) needed to pull data from power bi to excel</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/VBA-support-to-pass-cell-value-as-a-dax-filter-needed-to-pull/m-p/5179809#M65048</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/585098"&gt;@RoySampad&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;We haven’t received any response as of now. Kindly take some time to review our response, and please let us know if any additional details or clarification are required from our side.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2026 11:45:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/VBA-support-to-pass-cell-value-as-a-dax-filter-needed-to-pull/m-p/5179809#M65048</guid>
      <dc:creator>V-yubandi-msft</dc:creator>
      <dc:date>2026-05-08T11:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: VBA support (to pass cell value as a dax filter) needed to pull data from power bi to excel</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/VBA-support-to-pass-cell-value-as-a-dax-filter-needed-to-pull/m-p/5180877#M65064</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/585098"&gt;@RoySampad&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;We haven’t received any response as of now. Kindly take some time to review our response, and please let us know if any additional details or clarification are required from our side.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2026 12:04:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/VBA-support-to-pass-cell-value-as-a-dax-filter-needed-to-pull/m-p/5180877#M65064</guid>
      <dc:creator>V-yubandi-msft</dc:creator>
      <dc:date>2026-05-11T12:04:39Z</dc:date>
    </item>
  </channel>
</rss>

