query
29 TopicsMaking queries dynamic in Power Query
Join us for an insightful session with Rick de Groot , where he'll demonstrate how to avoid common errors caused by hardcoding values in your queries. Instead, learn how to dynamically apply logic to your queries, ensuring they adapt seamlessly to changes in your underlying data. Don't miss this opportunity to enhance your Power Query skills and make your data processes more robust and efficient. 𝙋𝙚𝙧𝙨𝙞𝙖𝙣 𝙋𝘽𝙄𝙐𝙂- 𝙈𝙞𝙘𝙧𝙤𝙨𝙤𝙛𝙩 𝘾𝙤𝙢𝙢𝙪𝙣𝙞𝙩𝙮: https://bit.ly/3IAg7xT 𝙇𝙞𝙣𝙠𝙚𝙙𝙄𝙣: https://bit.ly/32tGkif 𝙏𝙚𝙡𝙚𝙜𝙧𝙖𝙢 𝘾𝙝𝙖𝙣𝙣𝙚𝙡: https://t.me/PersianPBIUG 𝙔𝙤𝙪𝙏𝙪𝙗𝙚: WWW.YOUTUBE.COM/@DATABIS Language: English124Views0likes0CommentsDax Query Consumed Memory 1063 MB,exceeded
Hi Guys, in power bi desktop I got en error : Visual has exceeded available resources I have run Performance Analyser and after running dax queries I got: Resolve the error to see results Resource Governing: This query uses more memory than the configured limit. The query — or calculations referenced by it — might be too memory-intensive to run. Either reach out to your Analysis Services server administrator to increase the per-query memory limit or optimize the query so it consumes less memory. More details: consumed memory 1063 MB, memory limit 1024 MB. I have used Run in Dax query view. This is my code: DEFINE VAR __DS0FilterTable = FILTER( KEEPFILTERS(VALUES('Dim_Date'[Date])), AND('Dim_Date'[Date] >= DATE(2025, 4, 1), 'Dim_Date'[Date] < DATE(2025, 5, 1)) ) VAR __DS0Core = SUMMARIZECOLUMNS( ROLLUPADDISSUBTOTAL( ROLLUPGROUP( 'Dim_EA_SavingPlans'[CommitmentAmountPerDay], 'Dim_EA_AmortizedCosts_DiscountPlans'[PricingModel], 'Dim_EA_AmortizedCosts_DiscountPlans'[ResourceLocationNormalized], 'Dim_EA_AmortizedCosts_DiscountPlans'[OfferId], 'Fct_EA_AmortizedCosts'[CostInBillingCurrency] ), "IsGrandTotalRowTotal" ), __DS0FilterTable, "Wastage_Amount", 'MeasureTable'[Wastage Amount], "Commitment_Amount_Per_Day_With_OnDemand", 'MeasureTable'[Commitment Amount Per Day With OnDemand], "Percent_Commitment_Day_Has_PricingModel", 'MeasureTable'[Percent Commitment Day Has PricingModel], "Wastage___in_Total_Has_Pricing_Model", 'MeasureTable'[Wastage % in Total Has Pricing Model], "Sum_of_Amortized_Cost__TREATAS_", 'MeasureTable'[Sum of Amortized Cost (TREATAS)] ) VAR __DS0PrimaryWindowed = TOPN( 502, __DS0Core, [IsGrandTotalRowTotal], 0, 'Fct_EA_AmortizedCosts'[CostInBillingCurrency], 1, 'Dim_EA_SavingPlans'[CommitmentAmountPerDay], 1, 'Dim_EA_AmortizedCosts_DiscountPlans'[PricingModel], 1, 'Dim_EA_AmortizedCosts_DiscountPlans'[ResourceLocationNormalized], 1, 'Dim_EA_AmortizedCosts_DiscountPlans'[OfferId], 1 ) EVALUATE __DS0PrimaryWindowed ORDER BY [IsGrandTotalRowTotal] DESC, 'Fct_EA_AmortizedCosts'[CostInBillingCurrency], 'Dim_EA_SavingPlans'[CommitmentAmountPerDay], 'Dim_EA_AmortizedCosts_DiscountPlans'[PricingModel], 'Dim_EA_AmortizedCosts_DiscountPlans'[ResourceLocationNormalized], 'Dim_EA_AmortizedCosts_DiscountPlans'[OfferId] Can anybody advice what is wrong with my query? Best, JacekSolved872Views0likes3CommentsDataset in report has null in colunm, but data exists when executing query in SSMS or DaxStudio
Hi all, Strange thing here. I have a dax query which works fine in SSMS and in Dax Studio when I connect to SSRS-Server instance. But the same query shows for one column all null values in Report Builder when testing my report. What can it be ? Here is the query : EVALUATE SUMMARIZECOLUMNS ( 'Datum'[Maand], 'StockTerminal'[LocationName], 'YearChart'[GroupedCommodity], 'Datum'[Datum], 'Datum'[JaarMaand], 'Datum'[Jaar], FILTER ( VALUES ( 'YearChart'[GroupedCommodity] ), ( 'YearChart'[GroupedCommodity] <> BLANK () ) ), KEEPFILTERS ( TREATAS ( { "ARRIVED" }, YearChart[InboundStatus] ) ), FILTER ( VALUES ( 'Datum'[Jaar] ), ( 'Datum'[Jaar] = YEAR ( TODAY () ) ) ), "Qty", [Qty], "QtyPreviousMonth", [QtyPreviousMonth], "QtySamePeriodeLY", [QtySamePeriodeLY], "QtySamePeriode2YAGo", [QtySamePeriode2YAgo], "Difference", ( [Qty] - [QtySamePeriodeLY] ), "Difference2423", ( [QtySamePeriodeLY] - [QtySamePeriode2YAgo] ) )3KViews2likes13CommentsBreak a Line Graph when no data
Hi, Is there anyway to break a line graph when no data is present on a combo bar/line graph? No data was collected from 2019-2022 and the bars reflect this, however the lines look like there is data: I have tried to change to type to 'Categorical' however this then doesn't show it in date order, which it needs to be as it needs to show yearly changes in numbers. I could set to 0 but that would then look like there was sharp increase from 2022 to 2023 so ideally looking for a full break if possible. Is there a solution to this? Thank youImage limitation in Power Bi query
Is there a limit to the number of images that can be expanded in Power Bi query? I have processed 12 images by clicking the expand in image fied. The query does not display the expand icon in field any more for the other images I need to process in the report.Solved827Views0likes4CommentsQuery Regarding Report Display
Hi Community Members, Hope you are doing well, I had a small query regarding display options of a report in Power Bi Service, when I publish the report from my desktop app to service I want only the report to display and hide all the options above it and the navogation panel in side, (attaching screenshots of what I want to hide for your reference) Is there a way I can do this? Thanks a lotSolved650Views0likes1CommentPower BI Url query paramters not working
Hi All Need some help about this queries in power bi. I have a report (I only have read/view) rights on it and I want to query it via url. I have create my URL, the report loads but nothing is filtered. I saw that you need to be careful of spaces in the query and all thoose limitation and as far I can see I got that right. Out of option so looking is there any additional tip I should try. Here is my table name with its column name and the filter I am trying. I just dont get it why its not filtering. https://app.powerbi.com/groups/<someprivateurl>?filter=MIM_MART_FACT_DFO.DM_F_DIP_TRANS_POSITION_LOSS_PREVENTION/Locations eq 'GENN'1.4KViews0likes6CommentsAdd parameter in query designer (query from Power BI Performance analyser)
Hi guys, I am trying to add a parameter in my report and add the parameter in the query designer module. The query was generated within Power BI via Performance analyser. I saw different posts on this issue but no clear solution. First I have tried to create a parameter in the report (in my dataset properties) and add it with @ in my query such as // DAX Query DEFINE VAR __DS0FilterTable = TREATAS({@Test}, 'FACT - Conflicts'[Conflict category]) However, I have an error message that the parameter test was not declared. So I declared it again through "Query Parameters" module within the query designer (same name and another name). This time I can execute the query but it returns no row with a default value "Group" (which should not be the case - if I had put TREAT({"Group"}, it returns some rows). I tried to see what were the values in the Parameters properties window and I can see this. Which I don't understand because "Test" is not the name of my dataset.. Any idea to resolve this? Thanks a lot in advance!Solved6.3KViews0likes5CommentsServer refresh gives Table not found error but fine in desktop
I'm trying to set up my scheduled refresh for my PowerBI report - the connection is an ODBC on import, I have the required drivers and get a green check when I test the connection, however when I refresh I get the following error: SessionID: b5ba2f83-45cb-4fab-8a0e-8a79b6cdbf0c [0] -1055784932: DataSource.Error: ODBC: ERROR [42S02] [Cache ODBC][State : S0002][Native Code 30] [D:\Program Files\Microsoft Power BI Report Server\PBIRS\ASEngine\MDataEngine\Mi] [SQLCODE: <-30>:<Table or view not found>] [Location: <Prepare>] [%msg: < Table 'DBO.DSKILLSETSTAT' not found>]. DataSourceKind = Odbc. DataSourcePath = dsn=MYDSNLOCATION. OdbcErrors = #table({"SQLState", "NativeError", "Message"}, {}). . The exception was raised by the IDbCommand interface. [1] -1055784932: The command has been canceled.. The exception was raised by the IDbCommand interface. [2] -1055129594: The current operation was cancelled because another operation in the transaction failed. [3] -1055784932: The command has been canceled.. The exception was raised by the IDbCommand interface. [4] -1055784932: The command has been canceled.. The exception was raised by the IDbCommand interface. My refresh works just fine in PowerBI desktop, no issues with queries on any tables, it's clearly connecting to the source ok, I'm not sure what I'm missing. I can refresh and save the updated file in desktop and the report data refreshes on server. I'm not sure how or why it can't find the table any more. Here's a snip of the connection structure if I'm creating a new source - the table being queried is called dSkillsetStat in the dbo folder774Views0likes0Commentscontains a value
Hello all I am new to DAX and learning thing as I go. I am creating a measure where I wish to give me a count of issues based on certain criteria Open Issues Platform = CALCULATE(COUNTROWS('Jira-Extract-Live'), 'Jira-Extract-Live'[All Labels]="Platform" What I have now found is that my All Labels column contains other values and hence is not matching so my question is (and apolgise if really simply) can the = be substituted to represent 'contains'? So my query would be the same but the ask on the All Labels column would be contains "Platform"? Thanks JSolved1KViews0likes2Comments