id stringlengths 7 11 | source stringclasses 1
value | category stringclasses 11
values | title stringlengths 15 214 | text stringlengths 70 30.5k | url stringlengths 57 160 | tags stringlengths 3 113 | created_at int64 1.22B 1.79B |
|---|---|---|---|---|---|---|---|
se_79187979 | stackoverflow | DATA_SCIENCE | How to create Calculated Measure to find matching values between two tables in Excel Power Pivot | How to create Calculated Measure to find matching values between two tables in Excel Power Pivot
I have two tables (i.e. 1st is 'Sales' Table, 2nd is 'Territory' table) in my Power Pivot, and I have established relationships between the two using a 'territory' column.
The 'Sales' table contains Sales Orders data (i.e.... | https://stackoverflow.com/questions/79187979/how-to-create-calculated-measure-to-find-matching-values-between-two-tables-in-e | excel, dax, data-analysis, powerpivot | 1,731,574,745 |
se_79168940 | stackoverflow | DATA_SCIENCE | How does this DAX query work, I want to understand the flow of this query | How does this DAX query work, I want to understand the flow of this query
When SUMX should have 1st argument as a table then why did we use DISTINCT it will return a column of distinct product categories and also why do we use CALCULATE and Sum as second argument.
TotalSalesByUniqueCategory = SUMX(
DISTINCT(DimProduc... | https://stackoverflow.com/questions/79168940/how-does-this-dax-query-work-i-want-to-understand-the-flow-of-this-query | dax, data-analysis, powerbi-desktop | 1,731,044,763 |
se_73192747 | stackoverflow | DATA_SCIENCE | DML statements are only supported over tables that have data stored in BigQuery | DML statements are only supported over tables that have data stored in BigQuery
I am trying to use Update Set syntax to copy one column into another but its not working out. Any idea what to do here? Thankyou for replies.
SELECT PARSE_DATE('%B %d, %Y',SaleDate)
From sql-practice-350112.Nashville_housing.housing_sales... | https://stackoverflow.com/questions/73192747/dml-statements-are-only-supported-over-tables-that-have-data-stored-in-bigquery | sql, google-bigquery, data-analysis | 1,659,352,174 |
se_77548090 | stackoverflow | DATA_SCIENCE | How to create age groups with dplyr? | How to create age groups with dplyr?
How to create age groups in with {dplyr}.
Before 1 year, between 1 and 4 years, between 15 and 29 years, between 30 and 59 years and after 59 years. After that, I have the mortality rate variable and I want to know what the mortality rate is by age group.
I tried
faixas_etarias <... | https://stackoverflow.com/questions/77548090/how-to-create-age-groups-with-dplyr | r, dplyr, tidyverse, data-analysis | 1,700,919,969 |
se_79157015 | stackoverflow | DATA_SCIENCE | How to place DataFrame data in one unique index? | How to place DataFrame data in one unique index?
I've got the next code:
data = [{'TpoMoneda': 'UYU'}, {'MntNetoIvaTasaMin': '3825.44'}, {'IVATasaMin': '10.000'}, {'IVATasaBasica': '22.000'}, {'MntIVATasaMin': '382.54'}, {'MntTotal': '4207.98'}, {'MntTotRetenido': '133.90'}, {'CantLinDet': '2'}, {'RetencPercep': None}... | https://stackoverflow.com/questions/79157015/how-to-place-dataframe-data-in-one-unique-index | python, pandas, dataframe, spyder, data-analysis | 1,730,754,721 |
se_79144672 | stackoverflow | DATA_SCIENCE | FFT to compute a Bode diagram to find resonance in MATLAB | FFT to compute a Bode diagram to find resonance in MATLAB
I am trying to create a MATLAB code that takes input and output signals from an Excel file. In the first column of the file, there is the time at which the data was acquired, in the second column are the amplitude response data. In the third column, there are t... | https://stackoverflow.com/questions/79144672/fft-to-compute-a-bode-diagram-to-find-resonance-in-matlab | matlab, fft, data-analysis | 1,730,376,650 |
se_79134687 | stackoverflow | DATA_SCIENCE | Calculate accuracy, recall, precision, and balanced accuracy from Confusion matrix | Calculate accuracy, recall, precision, and balanced accuracy from Confusion matrix
The confusion matrix shows how the actual labels compare with the predicted labels for a binary classification problem.
Using the confusion matrix, calculate the following:
Accuracy: What proportion of the total predictions were correct... | https://stackoverflow.com/questions/79134687/calculate-accuracy-recall-precision-and-balanced-accuracy-from-confusion-matr | python, dataset, data-analysis | 1,730,140,181 |
se_79128214 | stackoverflow | DATA_SCIENCE | How to export InfluxDB data to Parquet and compress by time intervals? | How to export InfluxDB data to Parquet and compress by time intervals?
I’m a bit new to this, and I’ve suddenly been tasked with exporting large datasets from InfluxDB into Parquet format for easier storage and analysis. My main objectives are:
Finding a straightforward way to export and convert InfluxDB data to Parqu... | https://stackoverflow.com/questions/79128214/how-to-export-influxdb-data-to-parquet-and-compress-by-time-intervals | data-analysis, parquet, influxdb | 1,729,935,108 |
se_79125743 | stackoverflow | DATA_SCIENCE | GENERATESERIES function for calendar with hour interval not working as intended | GENERATESERIES function for calendar with hour interval not working as intended
I am trying to generate a calendar with hourly intervals based on my fact table.
Logic:
Get the earliest and latest dates in the fact and create the calendar based on those years.
Formula used:
VAR minDate = MIN(Monitoring[Usage Date])
VAR... | https://stackoverflow.com/questions/79125743/generateseries-function-for-calendar-with-hour-interval-not-working-as-intended | powerbi, dax, ssas, data-analysis, powerbi-desktop | 1,729,860,319 |
se_79113360 | stackoverflow | DATA_SCIENCE | Error in grouping datetime object values using 'groupby' and 'Grouper' in panda dataframe | Error in grouping datetime object values using 'groupby' and 'Grouper' in panda dataframe
I am facing anerror while trying to group a column containing dates on the basis of years.
I have converted the column to datetime object and tried groupby and Grouper method, but an facing the following errors:
C... | https://stackoverflow.com/questions/79113360/error-in-grouping-datetime-object-values-using-groupby-and-grouper-in-panda | python, dataframe, datetime, group-by, data-analysis | 1,729,589,823 |
se_79106758 | stackoverflow | DATA_SCIENCE | How to display a map with interactive time series data? | How to display a map with interactive time series data?
I want to make a shiny app which displays the prevalence of infection in cattle in the Brazilian state of Rio Grande do Sul over time.
I can get the plot to work, and filter it manually outside of a shiny app. When I try to create a reactive data set and use it i... | https://stackoverflow.com/questions/79106758/how-to-display-a-map-with-interactive-time-series-data | r, shiny, maps, data-analysis | 1,729,417,852 |
se_74415578 | stackoverflow | DATA_SCIENCE | Openpyxl or Pandas, which is better at reading data from a excel file and returning corresponding values | Openpyxl or Pandas, which is better at reading data from a excel file and returning corresponding values
Hello Stack OF Community,
*
Basically my goal is to extract values from an excel file, after reading through data from another column.*
**
Thickness** of parcel, with values for example - [0.12, 0.12, 0.13, 0.14, ... | https://stackoverflow.com/questions/74415578/openpyxl-or-pandas-which-is-better-at-reading-data-from-a-excel-file-and-return | python, excel, pandas, openpyxl, data-analysis | 1,668,278,304 |
se_79092731 | stackoverflow | DATA_SCIENCE | Youtube API Python, Is search not deterministic? | Youtube API Python, Is search not deterministic?
I want to use the Youtube API to collect some video data to train on data analysis. For this, I use the search method of the Youtube API. However, at each search, I don't get the same results. For example, with this code :
request1 = youtube.search().list(part="snippet"... | https://stackoverflow.com/questions/79092731/youtube-api-python-is-search-not-deterministic | python, google-api, youtube-api, data-analysis | 1,729,060,330 |
se_75756343 | stackoverflow | DATA_SCIENCE | Apply name-entity recognition on specific dataframe columns with Polars | Apply name-entity recognition on specific dataframe columns with Polars
I would like to apply a specific function to specific columns using polars similar to the following question:
Apply name-entity recognition on specific dataframe columns
Above question works with pandas and it is taking ages for me to run it on ... | https://stackoverflow.com/questions/75756343/apply-name-entity-recognition-on-specific-dataframe-columns-with-polars | python, data-analysis, python-polars | 1,678,969,969 |
se_79078148 | stackoverflow | DATA_SCIENCE | Prometheus data point disappears if not in the last scrape (getting around staleness) | Prometheus data point disappears if not in the last scrape (getting around staleness)
We're monitoring a Hashicorp Vault instance which reports the number of entries in each kv engine by namespace. Works fine when the data is reported however, sometimes the report comes back empty but it hasn't been 5m yet. My underst... | https://stackoverflow.com/questions/79078148/prometheus-data-point-disappears-if-not-in-the-last-scrape-getting-around-stale | time-series, prometheus, grafana, data-analysis | 1,728,648,408 |
se_79073468 | stackoverflow | DATA_SCIENCE | How to handle repeated events in a time range intersection calculation in Pandas? | How to handle repeated events in a time range intersection calculation in Pandas?
I am working on a Python script using Pandas to analyze event data. My goal is to calculate the intersection of active events.
My code works fine if the same event doesn't happen twice. However, if it happens twice, my code returns empty... | https://stackoverflow.com/questions/79073468/how-to-handle-repeated-events-in-a-time-range-intersection-calculation-in-pandas | python, pandas, dataframe, data-analysis, intersection | 1,728,549,676 |
se_60967882 | stackoverflow | DATA_SCIENCE | Which python library to use for qualitative analysis of survey data? | Which python library to use for qualitative analysis of survey data?
I have a dataset of responses from around 300 people completing a questionaire. The questionaire dealt with user experiences and behaviour in public transport. We ran the survey for 3 bus companies. Most of the questions are "yes/no", "best among 3" ... | https://stackoverflow.com/questions/60967882/which-python-library-to-use-for-qualitative-analysis-of-survey-data | python, machine-learning, data-analysis | 1,585,733,992 |
se_79049135 | stackoverflow | DATA_SCIENCE | Beautiful soup indeed scrape | Beautiful soup indeed scrape
Im trying to scrape data from the indeed website and wanted to first make a transform function that finds all the divs that have this section and return the length:
My code keeps returning zero and I can't quite understand why.
import requests
from bs4 import BeautifulSoup
def extract(pa... | https://stackoverflow.com/questions/79049135/beautiful-soup-indeed-scrape | python, html, css, web-scraping, data-analysis | 1,727,930,125 |
se_79041162 | stackoverflow | DATA_SCIENCE | How to efficiently handle large datasets in Python using Pandas? | How to efficiently handle large datasets in Python using Pandas?
I am working with a large dataset (approximately 1 million rows) in Python using the Pandas library, and I am experiencing performance issues when performing operations such as filtering and aggregating data.
Here is a simplified version of my code:
impo... | https://stackoverflow.com/questions/79041162/how-to-efficiently-handle-large-datasets-in-python-using-pandas | python, pandas, dataframe, performance, data-analysis | 1,727,734,353 |
se_74241047 | stackoverflow | DATA_SCIENCE | How to install pyodide package on vs code | How to install pyodide package on vs code
I want to use the pyodide package on a data analysis project on vs code but i can't install this packcage , I need help please
I tried to run pip install pyodide but i have this problem :
Collecting pyodide
Using cached pyodide-0.0.2.tar.gz (19 kB)
Preparing metadata (setup.p... | https://stackoverflow.com/questions/74241047/how-to-install-pyodide-package-on-vs-code | python, visual-studio-code, data-science, data-analysis, pyodide | 1,666,992,194 |
se_73101203 | stackoverflow | DATA_SCIENCE | Using DAX to create a summary table of COUNTS allowing GLOBAL FILTERS to take place | Using DAX to create a summary table of COUNTS allowing GLOBAL FILTERS to take place
I have the following table:
PRODUCT
REGION
REP
MONTH
REG-YH-67
NORTH
JANE
JUNE
REG-YH-67
NORTH
JANE
MARCH
REG-YH-67
NORTH
JANE
DECEMBER
REG-YH-89
NORTH
JANE
SEPTEMBER
REG-YH-67
OUT-OF-REG
JANE
JUNE
REG-YH-9
NORTH
JANE
... | https://stackoverflow.com/questions/73101203/using-dax-to-create-a-summary-table-of-counts-allowing-global-filters-to-take-pl | powerbi, dax, powerquery, data-analysis, powerbi-desktop | 1,658,689,166 |
se_79026045 | stackoverflow | DATA_SCIENCE | how can I combine three tables - 2 separate questionnaires used on the same cohort and one table with blood results | how can I combine three tables - 2 separate questionnaires used on the same cohort and one table with blood results
I have the results of a study looking at some blood results for thyroid function and questionnaires at the start and end of the study. I want to be able to analyse the results in rstudio for individual p... | https://stackoverflow.com/questions/79026045/how-can-i-combine-three-tables-2-separate-questionnaires-used-on-the-same-coho | r, data-analysis, researchkit | 1,727,336,457 |
se_79024936 | stackoverflow | DATA_SCIENCE | I am having an issue with phone number formatting in python | I am having an issue with phone number formatting in python
I am trying to format fake data from the Faker API. I am using pandas to store it into a data frame. I have figured out how to strip and replace any errors like no spacing, improper spacing, removing parenthesis, country code, and extensions. The main issue I... | https://stackoverflow.com/questions/79024936/i-am-having-an-issue-with-phone-number-formatting-in-python | python, pandas, data-analysis, faker | 1,727,302,309 |
se_79008731 | stackoverflow | DATA_SCIENCE | What functions can change zeroes into null values? | What functions can change zeroes into null values?
I am new to data analysis but I have a project due about weather. I am working with a new set of data (not cleaned yet) and I have noticed that some values were incorrectly entered as zeroes (0) instead of as "null". How can I change the 0 values into null values? I a... | https://stackoverflow.com/questions/79008731/what-functions-can-change-zeroes-into-null-values | google-sheets, type-conversion, data-analysis, trend | 1,726,890,851 |
se_78312967 | stackoverflow | DATA_SCIENCE | Is there a function in R to reduce the number of zeros of a percentage in the y axis of a bar chart? | Is there a function in R to reduce the number of zeros of a percentage in the y axis of a bar chart?
I wrote the code
ggplot(data = summary_datas) +
geom_bar(mapping = aes(x=member_casual,fill=member_casual)) +
labs(title = "Rider Membership data", subtitle= "Difference in the amount of registered riders based o... | https://stackoverflow.com/questions/78312967/is-there-a-function-in-r-to-reduce-the-number-of-zeros-of-a-percentage-in-the-y | r, visualization, data-analysis, data-processing | 1,712,868,523 |
se_78992948 | stackoverflow | DATA_SCIENCE | How to extract specific numbers with the given conditions in pandas | How to extract specific numbers with the given conditions in pandas
I have a sample data like this:
0 46X ⌀ 376_ 000 THRU
1 SLOT ⌀250 X .750 LG ↧.03
2 -2X .250-20-UNC-2B ↧.75
3 ⌀ 755+... | https://stackoverflow.com/questions/78992948/how-to-extract-specific-numbers-with-the-given-conditions-in-pandas | python, pandas, data-analysis | 1,726,558,133 |
se_78990768 | stackoverflow | DATA_SCIENCE | Create dax query in query editor to split table into multiple tables | Create dax query in query editor to split table into multiple tables
Given this type of table structure:
Counterparty Product Deal Date Value
foo bar Buy 01/01/24 10.00
foo bar Buy 01/01/24 10.00
foo bar Sell 01/01/24 10.00
foo bar ... | https://stackoverflow.com/questions/78990768/create-dax-query-in-query-editor-to-split-table-into-multiple-tables | powerbi, dax, data-analysis, powerbi-desktop, business-intelligence | 1,726,499,390 |
se_78984139 | stackoverflow | DATA_SCIENCE | dbt 1.8 unit_tests throwing node not found error | dbt 1.8 unit_tests throwing node not found error
I've been trying my first unit_tests in dbt1.8 but, its throwing me compilation error saying "test depends on a node named xyz which was not found
in macro ref (macros/path/ref.sql)". Please any suggestions are appreciated.
what I have done so far,
verified xyz exists ... | https://stackoverflow.com/questions/78984139/dbt-1-8-unit-tests-throwing-node-not-found-error | yaml, data-analysis, dbt, schema.yml | 1,726,279,309 |
se_78978306 | stackoverflow | DATA_SCIENCE | I need to compare the categories and items in the one file with the master list and output the missing items for each category | I need to compare the categories and items in the one file with the master list and output the missing items for each category
I have two Excel files. The first one contains a list of 34 items that
serve as a master list. The second file is generated monthly and
contains two columns: one column with categories and the... | https://stackoverflow.com/questions/78978306/i-need-to-compare-the-categories-and-items-in-the-one-file-with-the-master-list | excel, powerquery, data-analysis | 1,726,146,321 |
se_78975875 | stackoverflow | DATA_SCIENCE | Separating Systematic Errors and Randomness from a Measured Position Dataset | Separating Systematic Errors and Randomness from a Measured Position Dataset
I am trying to figure out a way to separate systematic errors from a set of datasets, representing position and position errors of a mechanical stage. The data is in pandas dataframe.
Background: A stage moves in a 2D plan. Measurements repor... | https://stackoverflow.com/questions/78975875/separating-systematic-errors-and-randomness-from-a-measured-position-dataset | dataframe, machine-learning, statistics, data-analysis | 1,726,093,435 |
se_78973203 | stackoverflow | DATA_SCIENCE | Error in M language while Calculating Fiscal Quarter | Error in M language while Calculating Fiscal Quarter
Errors: Expected to find a right parenthesis <')'>, but a keyword <'then'> was found instead
Power Query Editor
I'm trying to find a solution for inserting a new column in Power Query using M Language that calculates the Fiscal Quarter. I'm using Devin Knight's M fu... | https://stackoverflow.com/questions/78973203/error-in-m-language-while-calculating-fiscal-quarter | excel, powerbi, powerquery, data-analysis, data-transform | 1,726,049,251 |
se_78964393 | stackoverflow | DATA_SCIENCE | Reference Columns in a Virtual Table in other function | Reference Columns in a Virtual Table in other function
I need to first group by my data by date and then calculate second quartile.
I used the function SUMMARIZE()
But I cannot refer the virtual table column as an argument in the PERCENTILE.INC() and gives below error
`
MyPercntile=
var tbl_group=SUMMARIZE(site,site[... | https://stackoverflow.com/questions/78964393/reference-columns-in-a-virtual-table-in-other-function | powerbi, dax, data-analysis, powerbi-desktop, measure | 1,725,867,844 |
se_78960830 | stackoverflow | DATA_SCIENCE | Time Series Data with delay | Time Series Data with delay
I am working with two simple time-series obtained from a aquatic robot—one representing, Depth vs. Time and the Temperature vs. Time, with Time being the common factor between both series.
Basically both these sensors are mounted on the same robot, so ideally both should be changing togethe... | https://stackoverflow.com/questions/78960830/time-series-data-with-delay | python, matlab, time-series, data-analysis, timedelay | 1,725,733,289 |
se_78956363 | stackoverflow | DATA_SCIENCE | How to plot a scatter-chart in excel with text on the x-axis? | How to plot a scatter-chart in excel with text on the x-axis?
I would like some help with creating a graph in Excel. My goal is to plot a graph where the X-axis represents the names of the samples, and the Y-axis shows the corresponding values. Additionally, there may be multiple values for each sample.
Here’s a rough... | https://stackoverflow.com/questions/78956363/how-to-plot-a-scatter-chart-in-excel-with-text-on-the-x-axis | excel, char, visualization, data-analysis, diagram | 1,725,612,929 |
se_78816791 | stackoverflow | DATA_SCIENCE | Is there a way to plot a grouped bar chart as well as not show white space which it leaves for bars with 0 heights? | Is there a way to plot a grouped bar chart as well as not show white space which it leaves for bars with 0 heights?
I have a dataset where I need to plot it in a grouped bar chart but the dataset have so many datagaps that it leave traces/ space for bars with 0 heights.
I have tried converting the dataset from a wide ... | https://stackoverflow.com/questions/78816791/is-there-a-way-to-plot-a-grouped-bar-chart-as-well-as-not-show-white-space-which | dataframe, matplotlib, plotly, visualization, data-analysis | 1,722,434,446 |
se_78953224 | stackoverflow | DATA_SCIENCE | DAX ISFILTERED function with page level filters | DAX ISFILTERED function with page level filters
I'm using a page level filter (which users do not see), where I filter out irrelevant values:
I also add this filter to the page for the users:
I have a lot of filters on my page, so I use bookmarks to show/hide the filter pane. But I would still like to display what t... | https://stackoverflow.com/questions/78953224/dax-isfiltered-function-with-page-level-filters | powerbi, dax, data-analysis, powerbi-desktop, measure | 1,725,542,003 |
se_78931044 | stackoverflow | DATA_SCIENCE | Issue with Filters selected value being cached after change another slicer | Issue with Filters selected value being cached after change another slicer
I'm havin an issue with PowerBI slicers behavior.
So far, i have 2 tables:
Project
project
project_name
A
Project 1
B
Project 2
Category :
category category_name project
1 Category 1 A
2 Category 2 ... | https://stackoverflow.com/questions/78931044/issue-with-filters-selected-value-being-cached-after-change-another-slicer | powerbi, dax, data-analysis, powerbi-desktop | 1,725,005,567 |
se_78903716 | stackoverflow | DATA_SCIENCE | Power BI Average Measure - replace values with 0 | Power BI Average Measure - replace values with 0
I have a power BI measure which sort of works. I have a dataset with half hourly data (for one year) indicating either a value or 0. The measure calculates the average of each half hour across the year successfully, but it removes any period where the count is zero. Is ... | https://stackoverflow.com/questions/78903716/power-bi-average-measure-replace-values-with-0 | powerbi, dax, data-analysis, data-modeling, measure | 1,724,365,267 |
se_76225194 | stackoverflow | DATA_SCIENCE | Querying ethereum swap data for a specific uniswap pair | Querying ethereum swap data for a specific uniswap pair
I try to fetch all swaps for a specific uniswap pair to track the buys and sells of different entities and calculate their pnl.
When I'm fetchting it via the api I only see the one swap where the token was bought but not the other four swaps where the entity sold... | https://stackoverflow.com/questions/76225194/querying-ethereum-swap-data-for-a-specific-uniswap-pair | graphql, blockchain, ethereum, data-analysis | 1,683,790,951 |
se_54653356 | stackoverflow | DATA_SCIENCE | case_when function from R to Python | case_when function from R to Python
How I can implement the case_when function of R in a python code?
Here is the case_when function of R:
https://www.rdocumentation.org/packages/dplyr/versions/0.7.8/topics/case_when
as a minimum working example suppose we have the following dataframe (python code follows):
imp... | https://stackoverflow.com/questions/54653356/case-when-function-from-r-to-python | python, pandas, dataframe, data-analysis | 1,549,984,856 |
se_78928943 | stackoverflow | DATA_SCIENCE | R - Add a column to a heatmap that is independent of it to visually see correlations between grouping and a response variable | R - Add a column to a heatmap that is independent of it to visually see correlations between grouping and a response variable
I've got a large data frame of 800 rows and 30 columns and a response vector of length 800. I'm trying to create a heatmap where I'd like to display the heatmap along with the column, side by s... | https://stackoverflow.com/questions/78928943/r-add-a-column-to-a-heatmap-that-is-independent-of-it-to-visually-see-correlat | r, visualization, data-analysis, heatmap | 1,724,951,255 |
se_78919653 | stackoverflow | DATA_SCIENCE | Google Sheets: SUMPRODUCT Formula for Summing Income and Expenses by Month Across Multiple Sheets | Google Sheets: SUMPRODUCT Formula for Summing Income and Expenses by Month Across Multiple Sheets
I am a beginner in Google Sheets and I'm working on a workbook with three sheets: Income, Expenditure, and Summary. My goal is to create a summary sheet that automatically calculates the total income and expenses for each... | https://stackoverflow.com/questions/78919653/google-sheets-sumproduct-formula-for-summing-income-and-expenses-by-month-acros | google-sheets, formula, data-analysis, spreadsheet, sumproduct | 1,724,772,518 |
se_78906687 | stackoverflow | DATA_SCIENCE | Power BI DAX: Ranking Works at Total Level but Not When Drilling Down into Categories | Power BI DAX: Ranking Works at Total Level but Not When Drilling Down into Categories
I'm working on a DAX query in Power BI to create a table that summarizes sales data and ranks items based on their sales. The ranking works perfectly at the total level, but when I drill down into a specific category, the ranking doe... | https://stackoverflow.com/questions/78906687/power-bi-dax-ranking-works-at-total-level-but-not-when-drilling-down-into-categ | powerbi, dax, data-analysis, ranking | 1,724,428,721 |
se_78901717 | stackoverflow | DATA_SCIENCE | Power BI - drill down on line chart | Power BI - drill down on line chart
I have a table such as below in Power BI. I want to create a line chart that drills Animal-> Subcategory. I have Date in the x axis, Value in the y-axis and Animal in the legend field. I can add another field to the legend field. Does anybody know how I can do that?
I also have an A... | https://stackoverflow.com/questions/78901717/power-bi-drill-down-on-line-chart | powerbi, dax, visualization, data-analysis | 1,724,331,768 |
se_78880700 | stackoverflow | DATA_SCIENCE | Powerbi Why does measure produce different result based on equivalent filters | Powerbi Why does measure produce different result based on equivalent filters
I have a measure that counts the rows of a table ignoring the filtering on the variable post-secondary enrollment:
count_ignore_ps = CALCULATE(COUNTROWS(highschool_recent_year), REMOVEFILTERS(highschool_recent_year[ps_enr]))
Here is it used... | https://stackoverflow.com/questions/78880700/powerbi-why-does-measure-produce-different-result-based-on-equivalent-filters | powerbi, dax, data-analysis, powerbi-desktop, measure | 1,723,839,026 |
se_77819792 | stackoverflow | DATA_SCIENCE | Table to Table relationship in Google Relationship | Table to Table relationship in Google Relationship
I am new to Google Sheet. I have a question regarding Pivot Table. I make table to table connection in Microsoft Excel when I work with multiple tables at Pivot Table option.
Is there same process in Google Sheet while working with Pivot Table feature? I cannot find a... | https://stackoverflow.com/questions/77819792/table-to-table-relationship-in-google-relationship | google-sheets, pivot-table, data-analysis, table-relationships | 1,705,321,728 |
se_78789373 | stackoverflow | DATA_SCIENCE | How to Sum by field on different table | How to Sum by field on different table
I'm trying to create a measure that will Sum the forecasted and actual proceeds a client receives for all of the companies they own. Data model is structured in a star schema with Clients as the fact table and all other tables as dimensional.
Data Model:
DimSubCompanies
ClientI... | https://stackoverflow.com/questions/78789373/how-to-sum-by-field-on-different-table | powerbi, dax, data-analysis, powerbi-desktop, measure | 1,721,836,229 |
se_78847217 | stackoverflow | DATA_SCIENCE | Clarification on Interpreting Hourly Data: Does Hour 1 Represent 00:00-01:00 or 01:00-02:00? | Clarification on Interpreting Hourly Data: Does Hour 1 Represent 00:00-01:00 or 01:00-02:00?
I'm working with a dataset that contains hourly data, and I'm having trouble interpreting how the hours are represented. The dataset has two columns: one for the date and one for the hour. Here's an example of how the data is ... | https://stackoverflow.com/questions/78847217/clarification-on-interpreting-hourly-data-does-hour-1-represent-0000-0100-or | date, datetime, time-series, data-analysis | 1,723,104,466 |
se_78845181 | stackoverflow | DATA_SCIENCE | How to Transform Data in Excel so that 2 rows can be separated? | How to Transform Data in Excel so that 2 rows can be separated?
I have a dataset in Excel where month data is stated in rows along with ticket types, making it difficult to analyze. Here's a sample of what my data looks like:
Screen shot of my dataset, it can scroll more to the right until DEC
I need to transform thi... | https://stackoverflow.com/questions/78845181/how-to-transform-data-in-excel-so-that-2-rows-can-be-separated | excel, dataset, powerquery, data-analysis | 1,723,055,007 |
se_28041012 | stackoverflow | DATA_SCIENCE | Closest match for job titles | Closest match for job titles
I have master list of known job titles and looking for ways to extract the same from the searched term. For example:
Searched job title: Senior Digital Marketing Specialist
Extracted to: Senior Digital Marketing
Searched job title: Retail In-Store Sales Assistant; Full Time
Extracted to:... | https://stackoverflow.com/questions/28041012/closest-match-for-job-titles | java, nlp, extract, data-analysis, summarization | 1,421,743,771 |
se_78835869 | stackoverflow | DATA_SCIENCE | PowerBI - Group by Count with Detail? | PowerBI - Group by Count with Detail?
I am trying to get a table put together, and shows the # of Policies, and then the # of Users that makes up that policy count.
My table, basically, is as follows:
User Policy #
A 67728
A 86440
A 38497
B 11959
C 53988
C 36813
C 38102
B ... | https://stackoverflow.com/questions/78835869/powerbi-group-by-count-with-detail | powerbi, dax, data-analysis, powerbi-desktop, measure | 1,722,881,227 |
se_78821237 | stackoverflow | DATA_SCIENCE | How to use output of Matlabs classificaion learner app | How to use output of Matlabs classificaion learner app
I'm just trying to wrap my head around the classification learner app in MATLAB.
Generating test data with this code:
clear
clc
close all
%----------------------------
x1 = 1:0.01:3;
r = -1 + (1+1)*rand(1,201);
x1 = x1 + r;
y1 = 1:0.01:3;
r = -1 + (1+1)*rand(1,2... | https://stackoverflow.com/questions/78821237/how-to-use-output-of-matlabs-classificaion-learner-app | matlab, data-analysis | 1,722,518,976 |
se_78833733 | stackoverflow | DATA_SCIENCE | Is there a 6:12 chart in Power BI? | Is there a 6:12 chart in Power BI?
Does anybody know if it's possible to create a chart such as below in Power BI? I don't think it's in the default options, but wondering if anyone has seen it on the marketplace?
Would prefer to avoid Python as it's still a bit slow in Power BI.
CY=current year, PY=previous year, WOW... | https://stackoverflow.com/questions/78833733/is-there-a-612-chart-in-power-bi | charts, powerbi, visualization, data-analysis | 1,722,850,023 |
se_78815467 | stackoverflow | DATA_SCIENCE | DAX to compare 2 values and return text | DAX to compare 2 values and return text
I am using a text box to describe changes to a business model when certain changes are made, however I cannot seem to find the correct way to compare 2 x values to give me a result. I get an error saying comparing true/false with type text (the values are currency, same decima... | https://stackoverflow.com/questions/78815467/dax-to-compare-2-values-and-return-text | powerbi, dax, data-analysis, powerbi-desktop, measure | 1,722,417,570 |
se_78813120 | stackoverflow | DATA_SCIENCE | How to analyse nominal and categorical vairablescontaining more than one responses | How to analyse nominal and categorical vairablescontaining more than one responses
I am new on to R Programming
I have tried several codes to analyse the data below in a way that each question will have their responses stacked on each other in a bar chat to no avail
Cookies Pizza Strawberry
Ver... | https://stackoverflow.com/questions/78813120/how-to-analyse-nominal-and-categorical-vairablescontaining-more-than-one-respons | r, ggplot2, data-analysis, categorical-data, nominal-data | 1,722,362,474 |
se_78408357 | stackoverflow | DATA_SCIENCE | Loading and Inserting a table in csv format into a database | Loading and Inserting a table in csv format into a database
I am having trouble loading and inserting data from a table into a database I created. The table has a column that contains JSON data.
Could you help me understand what's wrong with the JSON data in that column and how I can fix it?
I am using the following L... | https://stackoverflow.com/questions/78408357/loading-and-inserting-a-table-in-csv-format-into-a-database | sql, mysql, json, database, data-analysis | 1,714,478,413 |
se_78634138 | stackoverflow | DATA_SCIENCE | Proportionately split dataframe with multiple target columns | Proportionately split dataframe with multiple target columns
I have a dataframe with 30 rows and 10 columns. 5 of the columns are input features and the other 5 are output/target columns. The target columns contain classes represented as 0, 1, 2. I want to split the dataset into train and test such that, in the train ... | https://stackoverflow.com/questions/78634138/proportionately-split-dataframe-with-multiple-target-columns | python, pandas, dataframe, numpy, data-analysis | 1,718,648,800 |
se_78792212 | stackoverflow | DATA_SCIENCE | Need help in filtering using measure in power bi | Need help in filtering using measure in power bi
I have 2 measures in my power bi report which show cumulative trend based on two date columns namely created date and closed date. The 2 trend lines show total number of bugs created vs total number of closed bugs at specific dates.
Total Created Bugs:
Measure1 = CALCU... | https://stackoverflow.com/questions/78792212/need-help-in-filtering-using-measure-in-power-bi | powerbi, dax, data-analysis, powerbi-desktop, measure | 1,721,895,826 |
se_78469275 | stackoverflow | DATA_SCIENCE | to_numeric() adds a decimal to all numeric values | to_numeric() adds a decimal to all numeric values
I have a dataset that looks like this:
profession Australia_F Australia_M Canada_F Canada_M Kenya_F Kenya_M
Author #DIV/0! 80 55 34 60 23
Librarian 10 34 89 ... | https://stackoverflow.com/questions/78469275/to-numeric-adds-a-decimal-to-all-numeric-values | python, pandas, dataframe, data-analysis, pandas-melt | 1,715,547,358 |
se_78751278 | stackoverflow | DATA_SCIENCE | Selenium isn't recognizing a button on my webpage | Selenium isn't recognizing a button on my webpage
I am trying to automate the data entry for a project I'm working on by making a selenium code to pull all of the data from a survey report page. My current issue is that for some reason one of the lines of code won't recognize a button in the HTML of the webpage to... | https://stackoverflow.com/questions/78751278/selenium-isnt-recognizing-a-button-on-my-webpage | python, selenium-webdriver, web-scraping, data-analysis | 1,721,065,767 |
se_78745573 | stackoverflow | DATA_SCIENCE | What's the difference between using ALL vs VALUES in MAXX table parameter? | What's the difference between using ALL vs VALUES in MAXX table parameter?
MAXX(<table>,<expression>,[<variant>])
What's the difference between using ALL(Product['Name']) vs VALUES(Product['Name']) in the above DAX? | https://stackoverflow.com/questions/78745573/whats-the-difference-between-using-all-vs-values-in-maxx-table-parameter | powerbi, dax, data-analysis, powerbi-desktop, measure | 1,720,933,222 |
se_78755770 | stackoverflow | DATA_SCIENCE | Power BI Remove year in Chart visual x-Axis but sort by month and year | Power BI Remove year in Chart visual x-Axis but sort by month and year
In my data I compare the sales amount of diferent years but to show them in the same chart, I faked the year in my data. It always start in 2000.
The legend shows the name of the SalesEvent.
My sorting of the x-Axis works perfekt if I use the date-... | https://stackoverflow.com/questions/78755770/power-bi-remove-year-in-chart-visual-x-axis-but-sort-by-month-and-year | powerbi, dax, powerquery, data-analysis, powerbi-desktop | 1,721,148,025 |
se_78752637 | stackoverflow | DATA_SCIENCE | Filter rows with same values for two specific columns in R? | Filter rows with same values for two specific columns in R?
I have a tibble in R like:
df1<-tibble(student=c("John", "John", "John", "Mark", "June"),
grade=c("A", "A", "A", "B", "A"),
age=c(18,16, 14, 19, 20),
city=c("Chicago", "Seattle", "LA", "SF", "LA"))
If two rows have the same values for... | https://stackoverflow.com/questions/78752637/filter-rows-with-same-values-for-two-specific-columns-in-r | r, dataframe, dplyr, data-analysis, tibble | 1,721,102,256 |
se_78748391 | stackoverflow | DATA_SCIENCE | Strange behaviour of Functions with Dates | Strange behaviour of Functions with Dates
I am having a brain freeze.
I imported SampleA.csv and then I tried the below on a date field
EOMONTH(SampleA[Date],0)
And
ENDOFMONTH(SampleA[Date])
They both should give me the same value. However, it doesn’t.
First, I thought it was bug, so I tested it with a new file Sampl... | https://stackoverflow.com/questions/78748391/strange-behaviour-of-functions-with-dates | powerbi, dax, data-analysis, powerbi-desktop, business-intelligence | 1,721,026,010 |
se_78745504 | stackoverflow | DATA_SCIENCE | What is the difference between using Table vs Column in DAX FILTER? | What is the difference between using Table vs Column in DAX FILTER?
Assuming my model has following tables:
Date, Product, Sales
Say this is a star schema with date and product filtering the Sales table.
I'm trying to visualise what the following does:
Filter on ALL Date column:
CALCULATE (
SUM ( Movements[Quantit... | https://stackoverflow.com/questions/78745504/what-is-the-difference-between-using-table-vs-column-in-dax-filter | powerbi, dax, data-analysis, powerbi-desktop, measure | 1,720,930,246 |
se_78745544 | stackoverflow | DATA_SCIENCE | How does ALL return distinct rather than all values in FILTER DAX (versus VALUES)? | How does ALL return distinct rather than all values in FILTER DAX (versus VALUES)?
Calculate Inbound =
CALCULATE( [Total Cost] ,
FILTER( ALL( Sheet1[Type] ) ,
Sheet1[Type] = "Inbound Shipping" ) )
The ALL in above filter seems to return distinct list of Type.
My understanding was that VALUES returns the... | https://stackoverflow.com/questions/78745544/how-does-all-return-distinct-rather-than-all-values-in-filter-dax-versus-values | powerbi, dax, data-analysis, powerbi-desktop, measure | 1,720,931,926 |
se_78745643 | stackoverflow | DATA_SCIENCE | Is DAX EARLIER equivalent to using variable to hold the outer context value? | Is DAX EARLIER equivalent to using variable to hold the outer context value?
EARLIER(<column>, <number>)
Is EARLIER technically equivalent to using a variable to hold the value?
For example: if I have a table called Products, then using EARLIER returns the value of the outer context. That is - sales for that product... | https://stackoverflow.com/questions/78745643/is-dax-earlier-equivalent-to-using-variable-to-hold-the-outer-context-value | powerbi, dax, data-analysis, powerbi-desktop, measure | 1,720,936,400 |
se_78745686 | stackoverflow | DATA_SCIENCE | How is offset able to go to prior year data without using having to explicitly to remove the filters from Date table? | How is offset able to go to prior year data without using having to explicitly to remove the filters from Date table?
DEFINE
MEASURE DimProduct[CurrentYearSales] = SUM(FactInternetSales[SalesAmount])
MEASURE DimProduct[PreviousYearSales] = CALCULATE(SUM(FactInternetSales[SalesAmount]), OFFSET(-1, , ORDERBY(DimDate[Cal... | https://stackoverflow.com/questions/78745686/how-is-offset-able-to-go-to-prior-year-data-without-using-having-to-explicitly-t | powerbi, dax, data-analysis, powerbi-desktop, measure | 1,720,938,148 |
se_74731870 | stackoverflow | DATA_SCIENCE | How to make Cell input part (code) disappear -show only output- when creating slides using Jupyter notebook and nbconvert? | How to make Cell input part (code) disappear -show only output- when creating slides using Jupyter notebook and nbconvert?
I am trying to create slides for a data analysis task using jupyter notebook and nbconvert Python module.
I want to show the output of a cell which is the visualization part, and I want to get rid... | https://stackoverflow.com/questions/74731870/how-to-make-cell-input-part-code-disappear-show-only-output-when-creating-sl | python, jupyter-notebook, data-analysis, reveal.js, nbconvert | 1,670,509,968 |
se_78725616 | stackoverflow | DATA_SCIENCE | Dax measure error in a table with 100 rows but not in one with 50 rows | Dax measure error in a table with 100 rows but not in one with 50 rows
I have the following PowerBI file with 2 tables.
Formula 100rows vs 50rows
One of the tables contains 50 rows, and the other contains 100 (both tables have the same values; only the number of repeated rows changes).
I also have the following formul... | https://stackoverflow.com/questions/78725616/dax-measure-error-in-a-table-with-100-rows-but-not-in-one-with-50-rows | powerbi, dax, data-analysis, powerbi-desktop, measure | 1,720,528,276 |
se_78729580 | stackoverflow | DATA_SCIENCE | Universal Kriging Accuracy with Strain Field | Universal Kriging Accuracy with Strain Field
I am attempting to interpolate the normal strain results in the wall type structure (dimensions:800x500 mm) while having approximately 150 scattered known points in the whole element
Sensor Layout
I used universal kriging with the Pykrige toolkit, but the lowest error marg... | https://stackoverflow.com/questions/78729580/universal-kriging-accuracy-with-strain-field | python, interpolation, data-analysis, kriging, covariogram | 1,720,602,172 |
se_78721331 | stackoverflow | DATA_SCIENCE | POWERBI - DAX - RunningTotal | POWERBI - DAX - RunningTotal
My Azure board is organized in tasks. Each task has a complexity, effort and a ClosedDate. All data are organized in a Table
I need to create a DAX COLUMN with the cumulative sum of Complexity * Effort over ClosedDate and User
Example:
User
PBI Name
Effort
Complexity
Closed Date
CUMULAT... | https://stackoverflow.com/questions/78721331/powerbi-dax-runningtotal | powerbi, dax, data-analysis, powerbi-desktop, measure | 1,720,447,951 |
se_76342152 | stackoverflow | DATA_SCIENCE | How To Read A Text File, Stop After Encountering A Certain Value And Continue Reading | How To Read A Text File, Stop After Encountering A Certain Value And Continue Reading
I have a text file with this format:
0 -82.871 2.52531 36.64 138 96.05
0 -76.1014 2.52577 35.36 137 83.9
0 -76.1869 5.57562 35.36 137 62.8
0 -18.1623 -11.6886 386.08 411 200.9
0 -4.62234 -4.91846 32... | https://stackoverflow.com/questions/76342152/how-to-read-a-text-file-stop-after-encountering-a-certain-value-and-continue-re | python, data-analysis, break, txt | 1,685,114,348 |
se_78715010 | stackoverflow | DATA_SCIENCE | what is correct way to change data types before data analysis? | what is correct way to change data types before data analysis?
I have a road accident dataset and I want to analyze this dataset. But I am struggling with data types as all data types in dataset is float but data is int or categorical.
casualty
age
1.0
22.0
2.2
33.0
When I check data type for above column ... | https://stackoverflow.com/questions/78715010/what-is-correct-way-to-change-data-types-before-data-analysis | python, data-analysis, data-mining | 1,720,273,910 |
se_61283382 | stackoverflow | DATA_SCIENCE | Pandas Profiling error within google colab | Pandas Profiling error within google colab
I'm trying to use Pandas_Profiling.ProfilingReport within my Google Colab notebook. This is my code:
import pandas_profiling
profile = pandas_profiling.ProfileReport(df)
and get that error:
" concat() got an unexpected keyword argument 'join_axes' " | https://stackoverflow.com/questions/61283382/pandas-profiling-error-within-google-colab | python, pandas, google-colaboratory, data-analysis | 1,587,175,310 |
se_78708331 | stackoverflow | DATA_SCIENCE | How to apply a filter in Apache Superset to a column not in the final query | How to apply a filter in Apache Superset to a column not in the final query
I'm currently working with Apache Superset and have encountered a specific challenge. I need to apply a filter to a column that isn't present in the final query output but exists within a subquery in the FROM clause. Does anyone have insights ... | https://stackoverflow.com/questions/78708331/how-to-apply-a-filter-in-apache-superset-to-a-column-not-in-the-final-query | postgresql, data-analysis, apache-superset | 1,720,114,196 |
se_78704793 | stackoverflow | DATA_SCIENCE | Dunn index and inertia in kmeans algorithm | Dunn index and inertia in kmeans algorithm
I have code which runs a KMeans algorithm on some data but i need it to now calculate the Dunn index and inertia for it but since the restrictions to this program is numpy, matplotlib and csv, no video online shows how to calculate the Dunn index with just these couple librar... | https://stackoverflow.com/questions/78704793/dunn-index-and-inertia-in-kmeans-algorithm | python, numpy, data-analysis, k-means | 1,720,059,596 |
se_78698503 | stackoverflow | DATA_SCIENCE | I have selected two columns in a groupby object. How do I apply a true or false filter on one and then apply a function on the other? | I have selected two columns in a groupby object. How do I apply a true or false filter on one and then apply a function on the other?
Say I have the Airbnb dataset with a bunch of columns. Of interest are 'neighbourhood_cleansed', 'host_is_superhost' and 'price'. I wish to find the neighbourhood in which the differenc... | https://stackoverflow.com/questions/78698503/i-have-selected-two-columns-in-a-groupby-object-how-do-i-apply-a-true-or-false | pandas, group-by, data-analysis | 1,719,941,366 |
se_78671299 | stackoverflow | DATA_SCIENCE | How to do aggregations while preserving the same number of rows? | How to do aggregations while preserving the same number of rows?
My input table is the two orange columns and I'm trying to create the three blue ones :
The column ND_ID is the index of each group of ids
The column CNT_ID is the length of each group of ids
The column SUM_VAL is the sum of vals for each group of ids
... | https://stackoverflow.com/questions/78671299/how-to-do-aggregations-while-preserving-the-same-number-of-rows | excel, powerquery, data-analysis, m | 1,719,391,803 |
se_78668009 | stackoverflow | DATA_SCIENCE | DAX Measure to return column values based on slicer | DAX Measure to return column values based on slicer
I am a little bit new to Power BI and wanted to know if this is possible please.
Lets say I have multiple tables with same schema but different values
So imagine I have below tables with just one column
Table 1
Col1
A
B
C
and then Table 2
Col1
D
E
F
I have another ta... | https://stackoverflow.com/questions/78668009/dax-measure-to-return-column-values-based-on-slicer | powerbi, dax, data-analysis, powerbi-desktop, measure | 1,719,326,210 |
se_78661943 | stackoverflow | DATA_SCIENCE | Distinct Count Rows with filter on Same column with Multiple Rows | Distinct Count Rows with filter on Same column with Multiple Rows
I'm new to DAX and still trying to get the hang of the basics!
I'm trying to get a distinct count based on whether a filter matches multiple values on the same column.
eg. based on the following dataset
PersonId Col1
1 -1
1 10
... | https://stackoverflow.com/questions/78661943/distinct-count-rows-with-filter-on-same-column-with-multiple-rows | powerbi, dax, data-analysis, powerbi-desktop, measure | 1,719,226,220 |
se_78645919 | stackoverflow | DATA_SCIENCE | Power BI file size not making sense | Power BI file size not making sense
So I'm working on a Power BI file, I want to add more data to it, and I can't understand how the file size is bigger than the sum of the datas...
The existing file is 1.2 GB.
I want to add some "skade" data, which alone is 11 MB. When I add this, the resulting file is 2.66 GB.
I wa... | https://stackoverflow.com/questions/78645919/power-bi-file-size-not-making-sense | powerbi, data-analysis, powerbi-desktop, data-modeling | 1,718,866,646 |
se_74995119 | stackoverflow | DATA_SCIENCE | Checking the values in a list against Pandas DataFrame | Checking the values in a list against Pandas DataFrame
I have a Pandas DataFrame with a list of words and their associated emotions (each can have several emotions attached to it). Something like this:
I have also extracted the tokens of a text, using Spacy, into a list. something like ['study', 'Maths', 'easy', 'gre... | https://stackoverflow.com/questions/74995119/checking-the-values-in-a-list-against-pandas-dataframe | pandas, dataframe, data-analysis, sentiment-analysis | 1,672,758,314 |
se_74470450 | stackoverflow | DATA_SCIENCE | Entity Framework + PostgreSql : very slow API performance on million rows | Entity Framework + PostgreSql : very slow API performance on million rows
I am currently working on a project with millions rows. Doing it with Linq. I am making sure I am triggering data to model at the end.
The .NET API works well with small queries, but when it comes to bigger ones, it could take up to 2-3 seconds.... | https://stackoverflow.com/questions/74470450/entity-framework-postgresql-very-slow-api-performance-on-million-rows | .net, postgresql, entity-framework, data-analysis | 1,668,661,693 |
se_78641863 | stackoverflow | DATA_SCIENCE | How to show timeseries data up to selected month in Power BI line chart with a Slicer | How to show timeseries data up to selected month in Power BI line chart with a Slicer
In Power BI, I created two visuals: a card visual, a time series line chart, and a month slicer.
I want the card visual to show data for the month selected in the slicer. For the line chart, I want it to display the timeseries for al... | https://stackoverflow.com/questions/78641863/how-to-show-timeseries-data-up-to-selected-month-in-power-bi-line-chart-with-a-s | powerbi, dax, data-analysis, powerbi-desktop, measure | 1,718,791,624 |
se_78631523 | stackoverflow | DATA_SCIENCE | Calculated table from 2 tables and sum DAX | Calculated table from 2 tables and sum DAX
Im trying to create a calculated table from 2 tables that are connected with a bridge.
My 3 tables
Report ReportRow Account Sign UniqueKey
Rapport129 129/* CM 35100 1 4177960
Rapport129 129/* CM 35100 -1 4174475
Rapport129 129/* CM 34000 1 417... | https://stackoverflow.com/questions/78631523/calculated-table-from-2-tables-and-sum-dax | powerbi, dax, data-analysis, powerbi-desktop, calculated-columns | 1,718,611,893 |
se_74191680 | stackoverflow | DATA_SCIENCE | How to render a stacked bar chart and grouped (clustered) bar chart in vega-lite? | How to render a stacked bar chart and grouped (clustered) bar chart in vega-lite?
I've created the following grouped bar chart, but now I want to combine the "Earned Income" and "Funding Income" datapoints into a single stacked-bar.
The end result should have 2 bars for each group: 1 bar combining "Earned Income" and ... | https://stackoverflow.com/questions/74191680/how-to-render-a-stacked-bar-chart-and-grouped-clustered-bar-chart-in-vega-lite | json, charts, visualization, data-analysis, vega-lite | 1,666,689,063 |
se_78608584 | stackoverflow | DATA_SCIENCE | How to use DAX to filter rows based on a date slicer | How to use DAX to filter rows based on a date slicer
I'm new to PBI and DAX
I've inherited a PBI report that uses the MS timeline slicer custom visual.
The problem I'm trying to resolve is to only show data in a table where any period inside the date/date range selected falls within the StartDate and EndDate of a tab... | https://stackoverflow.com/questions/78608584/how-to-use-dax-to-filter-rows-based-on-a-date-slicer | powerbi, dax, data-analysis, powerbi-desktop, measure | 1,718,120,811 |
se_78626621 | stackoverflow | DATA_SCIENCE | Formulas has an "@" between them when i use xlsx writer to create a excel sheet in python | Formulas has an "@" between them when i use xlsx writer to create a excel sheet in python
im working on a project in python where i have to collect some filtered date from google sheets and create a new .xlsx file, the problem is that one of the columns on google sheets, has a image formula on it, and i have... | https://stackoverflow.com/questions/78626621/formulas-has-an-between-them-when-i-use-xlsx-writer-to-create-a-excel-sheet | python, excel, openpyxl, data-analysis, xlsxwriter | 1,718,454,992 |
se_78624008 | stackoverflow | DATA_SCIENCE | Inner_join in R with duplicates? | Inner_join in R with duplicates?
I have two tibbles with a list of names and their scores on one of two tests. I want to merge these dataframes so each row consists of a name, and their scores on test one and test two.
df1<-tibble(person=c("Joe", "John", "Albert", "Joe", "John"), test_1=c(90, 91, 92,93, 94 ))
df2<-tib... | https://stackoverflow.com/questions/78624008/inner-join-in-r-with-duplicates | r, dataframe, data-analysis, tibble | 1,718,381,512 |
se_78622502 | stackoverflow | DATA_SCIENCE | Calculated table with aggregation DAX | Calculated table with aggregation DAX
Im trying to create a calculated table from 2 tables that are connected with a bridge.
My 3 tables
Report ReportRow Account Sign UniqueKey
Rapport129 129/* CM 35100 1 4177960
Rapport129 129/* CM 35100 -1 4174475
Rapport129 129/* CM 34000 1 4176966
... | https://stackoverflow.com/questions/78622502/calculated-table-with-aggregation-dax | powerbi, dax, data-analysis, powerbi-desktop, business-intelligence | 1,718,361,996 |
se_78607168 | stackoverflow | DATA_SCIENCE | how to optimize a sql | how to optimize a sql
I'm a beginner in data structures and algorithms, and I'm not sure how to apply them in practice to specific problems. I want to query book_name & user_id, as well as VP and UV, and I've used multi-layer nested subqueries. Although the logic is fine, the time complexity is too high. How should I ... | https://stackoverflow.com/questions/78607168/how-to-optimize-a-sql | sql, algorithm, optimization, data-structures, data-analysis | 1,718,104,928 |
se_78620337 | stackoverflow | DATA_SCIENCE | Issues with Double Gaussian Fit Using curve_fit in Python | Issues with Double Gaussian Fit Using curve_fit in Python
I used find_peaks to locate the peaks and estimated the initial parameters for the double Gaussian fit. I expected the curve_fit function to accurately fit the double Gaussian to my data, aligning the peaks and widths correctly. However, the resulting fit does ... | https://stackoverflow.com/questions/78620337/issues-with-double-gaussian-fit-using-curve-fit-in-python | python, numpy, scipy, data-analysis, curve-fitting | 1,718,316,682 |
se_78617363 | stackoverflow | DATA_SCIENCE | Using Field Parameters in DAX measure to calculate TopN | Using Field Parameters in DAX measure to calculate TopN
I have the below DAX Code which helps me find the top 3 values in a column based on a measure:
TopN_Values =
VAR Top3Names =
TOPN(3,
ADDCOLUMNS(
VALUES(Reports[Name]),
"TotalMarks", [Total_Marks]
),
[Total... | https://stackoverflow.com/questions/78617363/using-field-parameters-in-dax-measure-to-calculate-topn | powerbi, dax, data-analysis, powerbi-desktop, measure | 1,718,275,390 |
se_78541796 | stackoverflow | DATA_SCIENCE | What is the dataflow refresh limit in Power BI? | What is the dataflow refresh limit in Power BI?
A Power BI Premium subscription is required in order to refresh more
than 10 dataflows cross workspace.
https://learn.microsoft.com/en-us/power-bi/transform-model/dataflows/dataflows-features-limitations
Question 1: Does this refer to parallel refresh limit? Or does thi... | https://stackoverflow.com/questions/78541796/what-is-the-dataflow-refresh-limit-in-power-bi | powerbi, powerquery, data-analysis, powerbi-desktop, business-intelligence | 1,716,866,482 |
se_57888075 | stackoverflow | DATA_SCIENCE | I need to resample a np array with signal resample | I need to resample a np array with signal resample
I have some .csv files with data of different lengths. I need to load some defined columns, sort them and resample to the same length (100%).
I have written some defined nested loops to sort the data, but the resampling function doesn't work in the end.
subjects = [... | https://stackoverflow.com/questions/57888075/i-need-to-resample-a-np-array-with-signal-resample | python, signals, data-analysis, numpy-ndarray | 1,568,201,069 |
se_78594731 | stackoverflow | DATA_SCIENCE | How does dax week and year handle 31 dec 2023? | How does dax week and year handle 31 dec 2023?
I'm creating calendar table.
When I use YEAR dax on a date, say 31 dec 2023, then it will return year as 2023.
But if I use WEEKNUM dax on this date,
Returns the week number for the given date according to the
return_type value. The week number indicates where the week f... | https://stackoverflow.com/questions/78594731/how-does-dax-week-and-year-handle-31-dec-2023 | powerbi, dax, data-analysis, powerbi-desktop, business-intelligence | 1,717,821,089 |
se_78565978 | stackoverflow | DATA_SCIENCE | Duplicate Removal for Large Data | Duplicate Removal for Large Data
I am working on a retail dataset in which invoice has 250000 duplicates value . How to handle the duplicates in the data I am still trying to figure out a way to resolve the query .I was thinking to resolve it with mean median or mode | https://stackoverflow.com/questions/78565978/duplicate-removal-for-large-data | machine-learning, data-analysis | 1,717,320,222 |
se_78590132 | stackoverflow | DATA_SCIENCE | Unstacking table with multiple columns in Power Query | Unstacking table with multiple columns in Power Query
I am trying to convert this table:
ID rating cntry Index
Albert 603 pl 0
Peter 912 at 1
Peter 907 at 2
Albert 608 pl 3
Franz 833 pl 4
Peter 894 at 5
Eddie 753 it 6
Pe... | https://stackoverflow.com/questions/78590132/unstacking-table-with-multiple-columns-in-power-query | excel, powerquery, data-analysis, data-cleaning, m | 1,717,739,550 |
se_77882407 | stackoverflow | DATA_SCIENCE | Seaborn futurewarning caused by pandas dataframe | Seaborn futurewarning caused by pandas dataframe
I am new to data analysis. I am currently using seaborn 0.13.1 along with pandas 2.2.0 and I was messing around with the following code:
import pandas as pd
import seaborn as sns
from matplotlib import pyplot as plt
exam_scores1 = [62.58, 67.63, 81.37, 52.53, 62.98, 72... | https://stackoverflow.com/questions/77882407/seaborn-futurewarning-caused-by-pandas-dataframe | python-3.x, pandas, seaborn, data-analysis | 1,706,210,035 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.