User Profile
Atiroocky
Frequent Visitor
Joined 3 years ago
User Widgets
Contributions
Re: Help to import huge csv data
Thank you Cookistador , you just nailed it ! Processing the large amount of data was very quick. Just note that in the first step, with the conditional column, if we want "equals = blank" the value field of the condition MUST be leaved. If you write something down on it and erase it (= blank ?), you cannot validate the condition. In this case, have to delete the condition and make another one without writing anything in the value field.809Views2likes0CommentsHelp to import huge csv data
Hello, I have to deal with .csv files with millions of rows. Data are extracted from a building management software. Data are already unpivoted, that is why there is a huge amount of row For each row, first data is timeseries, second is the value (comma separated). The issue concernes the "attribute". It is not added in each row. It is added on a new line at the beginning of each set, as the minimal example below : Attribute_1 Date_1, value_1 Date_2, value_2 Date_3, value_3 #linebreak Attribute_2 Date_1, value_1 Date_2, value_2 Date_3, value_3 My goal is to transform this previous formatting to this : Date_1, value_1, Attribute_1 Date_2, value_2, Attribute_1 Date_3, value_3, Attribute_1 Date_1, value_1, Attribute_2 Date_2, value_2, Attribute_2 Date_3, value_3, Attribute_2 Thanks for your help.Solved883Views0likes3CommentsRe: Date/hour table - Create measure of day average depending on slicers
As I continue to investigate by my side, I think I found out the issue. Sometimes, the "Value" (which is calculated) is shown as "infiny" When I get rid of the "infiny" value in the filter pannel, and replace ALL by ALLSELECTED in the measure, it finally works ! day_average = AVERAGEX( ALLSELECTED(Table_date[Date_heure]), CALCULATE( [Value], VALUES (Table_date[Date] ) ))568Views0likes0CommentsDate/hour table - Create measure of day average depending on slicers
Hello all, My request is a bit "tricky" so i tried to simplified it the most. My data ("Value") are stored in a date/hour database, with a value each hour. I created a date/time table to link all my data. I want to show a table with : first column = date/day/hour second column = maximum hour values third column = day average value (measure) day_average = AVERAGEX( ALL(Table_date[Date_heure]), CALCULATE( [Value], VALUES (Table_date[Date] ) )) The table will be "filtered" by slicers, especially "hour" slicer, which will reduce the size of a the days. To do so, I already created measures, but I’m facing an issue. The measure that calculates the "day average" values works. But it is not affected by slicers. If I want to shorten day with the slicer by 10h-19h instead of 0h-23h, the result of this measure will not change. I tried to replace the ALL() by ALLSELECTED() whitout any change of the results. I found a "workaround" (right table in the image) wich consists of showing a table with date/day lines (instead of date/time/hour). I add a mesure to calculate the max value of a day, and the average value. The results of these two measures are properly affected by slicers. So, for the date/hour table, how can I write a mesure which will calculate the day average, and take care of slicers values ? Thanks for your help.Solved588Views0likes1CommentMatrix table filtered by measure ?
Hello everyone, I have a question for DAX specialists about filtering matrix table values with "external" measure. I would like to know if it is possible to add filter/context on a matrix table with the result of another measure (true/false) I fill a matrix table with a measure, lets say "Value_measure" from a "source table" If I add filters in the Value_measure (calculate(max(values), col1_value<col2_value)) , the matrix table shows correct values. If Value_measure = max(values) with no filter and that I create another "measure_filter" = if(col1_value<col2_value, true, false) and that I drag this measure_filter in the matrix filter panel and select only "true" values, it does not affect values. But if I change visual from matrix to table, the measure_filter works fine. Strange ? I also noticed that "measure_filter" works on matrix table if i copy/past code to a new column of the source table. Am I right ? Thanks for your answers.Solved5.8KViews0likes1CommentRe: Load and combine same structure .txt files from folder
Hi BA_Pete , It is not what I was expected, but your solution works. And I have to admit that it is better to do your way. I’m still in "Excel sheet" logical, manipulating data on multiple columns, one for each variable (T1,H1,T2,H2,T3,H3…), whereas thinking with "stack" data and "take" those I need in graph/chart/matrix_table with just putting the right context. Thanks for your reply. That will help me better than you think. To come back to the initial issue in PowerQuery, I managed to get the table I want (even if it is useless). As a beginner, it took me about 20 steps (14 steps after automatic powerquery combining file) to accomplish the task ! That’s time consumming. I put the steps below "in case of" : To sum up : after PowerQuery automatic combining jobs from folder (6 steps) I "group" by the field "n°" (primary key for each file. I could do it with "Date" field) Create one list by variable (Date, T, H) Extract value from list with separator "tab" for each variable Then split column by separator "tab" for each variable Then delete unwanted column I’m sure that there is a quicker way to procede. Thanks for your help.1.5KViews0likes1CommentLoad and combine same structure .txt files from folder
Hello, I need to load and combine multiple .txt files from a folder to PowerBI, and have a table with side by side column. Data are separated by tab. These .txt files have got the same 4 columns structure, with these headers : "n°" "Date" " Temp" "Hyg" Data from "n°" and "Date" are the same for each file. When I ask PowerQuery to combine theses files, it appends them one above the other : file.name n° Date Temp Hyg file1.text 1 01/01/2023 25 50 file1.text 2 01/02/2023 30 50 file2.text 1 01/01/2023 20 40 file2.text 2 01/02/2023 35 55 What I would like : n° Date file1.Temp file1.Hyg file2.Temp file2.Hyg 1 01/01/2023 25 50 20 40 2 01/02/2023 30 50 35 55 Thanks for your helpSolved1.5KViews0likes3CommentsRe: Column in datatable with dynamic function paramater
Thanks, that works perfectly ! As a "beginner" I’m not very comfortable playing with "Measures". A bit earlier before posting in this forum, I tried to put the column code in a measure, but I used Table_DHU[Date] as start date instead of "MAX(Table_DHU[Date])". I was returning me an error. For me "MAX" was the last entry of all table data. But I was thinking as "table" data and no "measure" data. It is still a bit confused in my mind but time will help. Thanks again !759Views0likes2CommentsColumn in datatable with dynamic function paramater
Hello, I managed to calculate a cumulative rolling day in a column of my table. I use the function "DATESINPERIOD" I would like to replace the "static" number parameter by a dynamic parameter I know that datatable are kind of "static" and can’t be updated with a "what-if" paramater. By the past I managed to generate a dynamic datable thanks to "SWITCH" function, but it was totally different needs and I can’t apply this "trick" to my actual need. Any help would be appreciated ! ThanksSolved796Views0likes4Comments
Data Privacy
Microsoft Fabric Community and Privacy
To learn more about how we manage your data, please review the Microsoft Fabric Community Data Privacy guide.