Questions tagged [powerquery]

Microsoft Power Query for Excel enhances self-service business intelligence (BI) for Excel with an intuitive and consistent experience for discovering, combining, and refining data across a wide variety of sources including relational, structured and semi-structured, OData, Web, Hadoop, Azure Marketplace, and more. Power Query also provides you with the ability to search for public data from sources such as Wikipedia.

Filter by
Sorted by
Tagged with
1 vote
1 answer
41 views

How to sum rows in a table based on duplicates in two columns

I have been googling trying to find a solution to this for two days now. I have a large dataset and want to consolidate/sum the profit rows based on the fact that they have the same ID and sale month. ...
excelhelp221's user avatar
0 votes
1 answer
65 views

PowerQuery / How to remove duplicate rows under specific conditions keeping the first entry?

I have almost the same needs as here, from which my title is based. Here's my list : table screenshot Same as data : ID Version ModificationDateTime StatutModifié 1 2 08/11/2022 16:20:46 Abandon 1 ...
Ge0's user avatar
  • 1
0 votes
1 answer
39 views

Extract duplicate row based on three columns power query

Hi i want extract the duplicated row based on three columns in power bi (power query). If all column are same with other row then extract. In this case the column are name, surname and phone1. I show ...
Valerio Mezzopra's user avatar
0 votes
2 answers
111 views

Extract matched keyword and its matching line or paragraph as regex submatches

The following code snippet loops through single-column tables containing keywords, in a keywords sheet and tries matching these concatenated keywords of each column, to a text string (Str) that has ...
sifar's user avatar
  • 1,124
1 vote
1 answer
31 views

how to write a list objects in power query

I would like to create a list object to contain specific ID numbers ? How to write the code below more efficient ? many thanks in advance. #"Added Conditional Column" = Table.AddColumn(#&...
Seyma Kalay's user avatar
  • 2,321
0 votes
1 answer
17 views

DAX Measure: Slicer using 2 columns

I have two columns with numbers from 1 to 10, for example: Column A Column B 1 2 3 1 I have to create a slicer that will filer other columns (Column C, Column D....) based on the numbers in Column ...
Ravena's user avatar
  • 13
-1 votes
0 answers
17 views

Oauth2.0 Parameter in Power BI custom connector

I am trying to develop the custom connector using M Language with implementaing oAuth2.0 authentication. Curently, clientId and clientSecret is being accessed from the respective files as: client_id = ...
Trang's user avatar
  • 1
-1 votes
1 answer
47 views

Is there any DAX query for calculate the ratio of distinct value

enter image description hereI have calculated ratio of distinct values from same col in power bi by using new measure, after calculating it I have put that result in card it is not showing result ...
Nikita Rawalkar's user avatar
0 votes
2 answers
60 views

In Excel, is there a simple way to extract data fields from a set of records into a table so I can graph the data?

I've recorded some data from my car using an 'on-board diagnostics' reader and copied the data into Excel. It appears as the image below. Raw data I'm trying to find a simple way to read data fields ...
johnb's user avatar
  • 3
1 vote
1 answer
42 views

Add column with sheet name with Power Query?

I have a power query that extracts all this information and sorts it into columns but I would like to add one that also states the sheet the value is pulled from. Here is my current code: let ...
qplsn99's user avatar
  • 57
1 vote
1 answer
73 views

How to match values in a cell and return all matches (excel)

I have a table in excel Column 1 has a list of items. I want to categorise them under different headings by matching them e.g. if the item was an ‘apple’ I would want to match that to the ‘fruit’ ...
Ucfm's user avatar
  • 13
2 votes
1 answer
39 views

Power Query: alternating highlighting based on row values

So my column is sorted in ascending order. I want the 000001s to be highlighted the same color and for the 000002s to be highlighted another color. enter image description here What’s the best and ...
Abosh's user avatar
  • 23
0 votes
1 answer
63 views

Calculate average value using the average value from row above - power query

I need to calculate the flow of diesel consumption of a fleet through the average purchase value. With each diesel purchase, I need to determine the amount of diesel in stock, the stock value and the ...
DSCintra's user avatar
1 vote
2 answers
59 views

Calculate total number of minutes in PowerBI

I am a fairly beginner user of PowerBI and still learning the ropes about DAX / PowerQuery. I have a column called "Time Usage" that has the time in text format: "1d 10h 25min", &...
user15180012's user avatar
0 votes
1 answer
35 views

Can I add multiple columns at once with a Power Query M custom formula?

As a business analyst, I need to repeatedly use cost and revenue data points to create different variants of a margin result. I am trying to come up with a reusable piece of code that I can use and ...
Benjamin Pencarski's user avatar
0 votes
0 answers
20 views

Is it possible to populate Power M Query parameters with the filtered results of another query?

I have a very large dataset in Azure Data Explorer that will grow to millions of rows, the data is time series data for a large number of objects/assets in our database. I need to provide a report in ...
James Turner's user avatar
0 votes
1 answer
30 views

Filter the 1st payment of each protocol out of 500k rows of payment record

I have export a report with 500k rows of transactions of each item. I need each protocol's 1st/oldest payment date. I used pivot table to get 506 protocols with each transaction number and date. But I ...
yan peng's user avatar
0 votes
1 answer
43 views

Power BI: Measure as Category for Visuals

I have a requirement which I am not able to solve. The requirement is: From the above table, Calculating the "% of Revenue" is percentage of sum of revenue to the grand total Revenue. ...
sarvani's user avatar
1 vote
2 answers
45 views

How can I combine a single query of multiple sub-tables (with repeating headers, etc) into a single table

I have a query (weather data) that results in multiple sub-tables. For example, the initial raw query looks like this: Column1 Column2 Columns3-12 Boston Hourly Forecast Made Dec 6 2023 1134 UTC ...
MJC's user avatar
  • 101
0 votes
1 answer
32 views

My date column is in following format Dec 3, 2023 · 11:32 AM UTC but i want it in DD-MM-YYYY bcoz I want to work in PowerBI and want to extract month

I want one separate column with month name , but i am facing difficulty to convert the column. I have used power query editor for that but gives error to me. = Text.From(Date.Day([date])) & "-...
AnonyMus's user avatar
-1 votes
1 answer
17 views

Power Pivot / Data model blocking - duplication in data + tabular form not working

I have downloaded all my sheets in power query and made the necessary transformations, including creating a common Column ID on each sheet based on a project number and company ID (=Project number (...
Maissa Oueslati's user avatar
0 votes
3 answers
35 views

Powerquery: choosing the right value for a row based on a different table with variable categories

I'm not sure this one is even possible as I've been scouring the web for this. I want to add a value to a table (table1) from a different table (table2) based on a value in table1 and variable ...
user23051445's user avatar
0 votes
1 answer
30 views

Excel PowerQuery only returns 100 rows for JSON Import

How do I load the full dataset (490 rows) from JSON using Excel PowerQuery? It is currently only loading 100 rows. Import JSON: Click on list (note the TotalRecordCount of 490 rows): Only 100 rows ...
PeterX's user avatar
  • 2,771
0 votes
1 answer
25 views

Dynamic date filter in Power Query

I want set a dynamic date filter in a table DateTime.LocalNow(), so that everytime I refresh the query it won't import data beyond current date. I've already set a fixed filter "Filtered Rows&...
Neri Kim's user avatar
  • 149
-1 votes
0 answers
25 views

Excel "Get & Transform" to ODBC connection not loading all rows

I have an Excel workbook with a couple Get & Transform/PowerQuery connections to to an application database via ODBC connections. I am finding within the Query Editor, I am able to get all the ...
monkeymagik's user avatar
0 votes
1 answer
47 views

Power BI Web.Contents Failing In A Function But Not Outside

as ever - greatful for help from the commuinity. The following is my code to call an API, initReq, which if not null goes to gatherpagingdata. gatherpagingdata uses a URL that changes and is gathered ...
Terran Brown's user avatar
0 votes
0 answers
26 views

DAX Contains Function doesn't works with DirectQuery in Power BI

I have been trying for some time to find a DAX formula to count a number of elements in a table with a search or string content condition. I tried this formula: test_yes_answer = CALCULATE(COUNTROWS(...
Gipti's user avatar
  • 1
0 votes
1 answer
53 views

Expression.Error: A cyclic reference was encountered during evaluation

I begin with Power Query and i need help. Context: i merge different Sales reports, add a date table based on Customer Fiscal Year. Sales informations are monthly and i need to transform them on ...
LuBo's user avatar
  • 3
0 votes
1 answer
35 views

PowerQuery: Find first and last entry in group

I have a dataset that has one or more rows per individual person, arranged chronologically from earliest to latest. Each row has a metric associated with that person. I want to be able to find the ...
Ralph Asher's user avatar
0 votes
2 answers
60 views

Power Query: How do I make a custom column for rows that have duplicate values in 2/3 columns?

So I have 3 columns. Column A is the subject Column B is receipt date And column C is the order result The order result is only listed in one row per duplicate subject. I want to make a custom ...
Abosh's user avatar
  • 23
0 votes
0 answers
28 views

Looping through same API call using power query in Power BI

I need to keep running an API call (get request) where I am using web.contents function until the status for the request changes from "null" to "finished", once in finished state I ...
Alan Paul's user avatar
  • 113
0 votes
2 answers
108 views

New index based on existing index

I have a table that is similar to this one but with more rows (in the thousands), I am trying to create a new index from a previous index as follows. The old index and category is data i have and the ...
Sarah's user avatar
  • 51
0 votes
0 answers
24 views

Struggling to display the right values in power bi with calculated columns

I'm facing an issue with displaying my values in a card visual. I have a calculated column that shows the margin of the values I'm looking for. I would like to display in a card visual the sum of my ...
nianeedpowerbi's user avatar
1 vote
1 answer
40 views

Power BI Expression.Error: The name wasn't recognized. Make sure it's spelled correctly

First of all - thank you to those who have helped with coding so far... I'm hoping this is the last problem with my code to use the Autotask API. Syntax is passing in Power BI and in Chat GPT and what ...
Terran Brown's user avatar
0 votes
1 answer
53 views

Count the number of occurences of a certain value for each column and display it in a graph in Power BI

I am a recently hired Data Analyst for a company and I'm building a dashboard for a scorecard and I want it to display each question occurences of "Non compliant" responses. My database is ...
Rafael Mocochinski Freitas's user avatar
0 votes
1 answer
60 views

How to edit an Excel- Power Query Connection via VBA Macros?

I am using various Excel-sheets to grab stock-sata for my stock-valuation Excel-sheets. Therefore, I have an individual Excel file per stock, which contains a power query-link to a homepage, where I ...
CluelessUser's user avatar
1 vote
1 answer
53 views

request via the Internet (web) in power query

There is a website https://exchange.gov.tm/quotations If you go to this site through a browser, you can see a large table that is located in the tag But when I connect to it in power query via the ...
Xazratxon Sultonxonov's user avatar
1 vote
2 answers
71 views

Use row values as a new column and fill down to their corresponding values

I'm relatively new to Power Query and trying to clean some data. Here's a sample dataset within Power Query. sample data I need to create a new column called "Standards" and assign values ...
741yy1's user avatar
  • 13
0 votes
1 answer
65 views

Extend rows of hardcoded table with formula Power BI

I manually (hardcoded) made a table with 2 rows, which are my starting values, in Power BI: Now I want to extend the amount of rows of this table but I want the next value to be: 1.3% - (1.3% * 5%) = ...
Frank's user avatar
  • 41
0 votes
1 answer
55 views

Power Bi - Order Fulfillmernt Matrix - 14 day Quantities Due & Quantities Remaining Calculations

I'm hoping someone may be able to help with this quite complex (to me) process. I have a matrix that details order quantities with quantities in stock. I'm wanting to perform this calculation over a ...
dapm's user avatar
  • 27
1 vote
2 answers
67 views

Best way to remove invisible Unicode characters from text using Power Query in Excel

I have two tables of data downloaded from an Oracle Cloud financial system and imported into Microsoft Excel. Both had Invoice Number fields but, when I used Power Query to transform them into ...
Simon's user avatar
  • 10.7k
0 votes
1 answer
28 views

Excel PUT to API endpoint failing with bad request

I'm trying to duplicate an Insomnia POST request to an API endpoint in Excel. I believe I'm close but I'm obviously missing something in the Excel Power Query request. Here is the working CURL request ...
Dawg99's user avatar
  • 1
0 votes
3 answers
74 views

Power Query: Check if item in list is a substring of value in a column, return list item if true

I have a table, let's call it Markets, that contains a column of both old and new names. I've also loaded a list NewMarkets as a separate query that contains all the new market names. For example, let'...
Stephen Trippy's user avatar
0 votes
2 answers
57 views

Power query / Excel transpose restructure data data

This is the updated question: I like to change a table looking like this into a table looking like this: how can I do this? Because I cannot handle programming language very well. Can anyone show me ...
wbart's user avatar
  • 27
1 vote
3 answers
82 views

Excel - use sublist delimiter power query without duplicating data

I am unable to transform my CSV in the way that I want. I have looked online, but have been unable to find a resolution to my problem. I have the following CSV: name;number;list "name1";1234;...
tbeest's user avatar
  • 15
-1 votes
1 answer
46 views

How do I transform data that is in arrays

Need assistance with transforming data in order to create relationship between the fact table and dimension table. The fact table contains requests from customers and these requests are labeled with ...
Neri Kim's user avatar
  • 149
0 votes
1 answer
35 views

Replace dates older than 3 months via PowerQuery

I am trying to remove dates from column [Appt Date] that are more than 3 months old and would like it to work on rolling 3 months so that I do not have to continuously go into the code and update the ...
Peter Mogford's user avatar
0 votes
2 answers
68 views

Find number of days between two dates in power bi

I am trying to find number of days between two dates based on a slicer. I have a table visual which shows the data based on given date slicer. I have a date column called "Sampled_date", &...
Harsha Nagireddy's user avatar
0 votes
1 answer
52 views

Implementation of Javascript logic in power fx - canvas app

I am pretty new to Canvas app and I was actually looking for implementation of JS logic in power fx. Power fx is a low code language but its very complex while applying the logic to it when the ...
Prashant Pokhrel's user avatar
0 votes
1 answer
37 views

Using Power query and or power pivot

I have 10 different excel files with 1000's of rows and each file has different columns apart from 1 common column across all 10. Is there a way to use power query and or power pivot to extract data ...
Sweatybetty's user avatar

1
2 3 4 5
118