tables
31 TopicsProcess data table to obtain subtotal table
Hello, I have a Database-like table which resumes Work Orders (WO) and Tasks for those WO where there's as many lines as there's Tasks. For example, I have 5 tasks for the same WO where each has their own planned work hours, actual work hours, planned costs, actual costs, etc : I would like to have a second table, from that table, to show WOs with the subtotals only, and keep WO-related data only : Is it something that can be done? Thanks! PS. I know Matrix can do that, but I don't want show the data necessarily with a table.Solved1KViews2likes6CommentsDefault Grow To Fit, Auto-Size Width - October 2025 Release
To PBI developers and fellow users, The new October update bringing Grow to fit as a default has been frustrating to work with. As someone who has used Power BI for the better part of a decade I find it much cleaner and user friendly to manage my column widths instead of arbitrarily assigning widths based on the space of a block. This is how we all have been doing for years. Per the release notes: https://powerbi.microsoft.com/en-us/blog/power-bi-october-2025-feature-summary/ Auto expand table columns The Grow to fit option distributes extra space across columns for cleaner visuals. And I'm not the only one: As Kyle puts it, we are frustrated by being forced default options that, in our opinion, degrade user experience. I encourage making the service easier for new users to drop in things and make it look pretty with minimal effort. But now I have to go into each table and switch this setting each time I want to return to a traditionally auto-sized column. Please make the default "Fit to Content". Or at least give an option to set a client preference for one or the other. Thank you, generatorsam6.9KViews17likes11CommentsWrong Totals in aggregation snapshot tables
Guys, I need your help. I'm stacking up 2 snapshot tables, and, besides I'm using sumx with some help of copilot, I'm getting the wrong totals. I'm trying to get the right numbers of enrollment for each period of time based on CICLO column. Here is an example of this table, DATA_MATRICULA is primarykey to datatable: DT_EXECUCAO_AGG| MAT_LIQ| CICLO| DATA_MATRICULA 20/05/2025 1 20242 10/05/2024 20/05/2025 3 20242 11/05/2024 20/05/2025 5 20242 12/05/2024 20/05/2025 0 20242 13/05/2024 20/05/2025 9 20242 14/05/2024 20/05/2025 9 20242 15/05/2024 20/05/2025 30 20252 10/05/2025 20/05/2025 10 20252 11/05/2025 20/05/2025 1 20252 12/05/2025 20/05/2025 3 20252 13/05/2025 20/05/2025 5 20252 14/05/2025 20/05/2025 1 20252 15/05/2025 04/06/2025 0 20242 10/05/2024 04/06/2025 1 20242 11/05/2024 04/06/2025 3 20242 12/05/2024 04/06/2025 5 20242 13/05/2024 04/06/2025 2 20242 14/05/2024 04/06/2025 2 20242 15/05/2024 04/06/2025 1 20252 10/05/2025 04/06/2025 0 20252 11/05/2025 04/06/2025 20 20252 12/05/2025 04/06/2025 5 20252 13/05/2025 04/06/2025 1 20252 14/05/2025 04/06/2025 1 20252 15/05/2025 Here some example of what I want to show RĂ³tulos de Linha 20242 20252 Total %YoY Campus 13 62 75 377% Polo 27 16 43 -41% Total Geral 40 78 118 95% This measure is looking to get the quantity of enrollment from the same period of the last year, but I used a fixed timeslap 365 days back. Sum MAT_LIQ_AA_YTD_Foto_D-1 = VAR CicloPassado = CALCULATE(MAX('f_MYTABLE_252'[CICLO])) - 10 VAR MaxExecucao = CALCULATE(MAX('f_MYTABLE_252'[DT_EXECUCAO_AGG])) RETURN SUMX( VALUES(d_Datatable[Date]), VAR DataContexto = d_Datatable[Date] VAR DataDeslocada = DATEADD(d_Datatable[Date], -IF(DataContexto < DATE(2025, 03, 01), 366, 365), DAY) VAR MaxData = CALCULATE(MAX(d_Datatable[Date]), ALL(d_Datatable)) RETURN IF( DataContexto <= MaxData, CALCULATE( SUM('f_MYTABLE_252'[MAT_LIQ]), 'f_MYTABLE_252'[CICLO] = CicloPassado, 'f_MYTABLE_252'[DT_EXECUCAO_AGG] = MaxExecucao, d_Datatable[Date] = DataDeslocada ), BLANK() ) )Solved936Views0likes5CommentsFilter two tables on Multiple Criteria
Hello! this might be confusing and I can't share any data so I will do my best! I have two tables: SynthesizedItems and Failures. I have a report page dedicated to fail rate. This is just the number of fails/number of synthesized items. (measures in the failure table) Originally, I linked the two tables to a common date table. this allowed me to see the fail rate adjusted based on the users filtering by date. Then, I realized I needed to be able to break this down further. I added an additional table called DepartmentFilter and linked it to department in both the fail and synthesis tables. this seems to work. Now my question. My report has SEVERAL factors involved that users can slice their data by (all coming from the failure table) and I noticed that if the user filters to a certain customer, the fail table will filter but not the synthesized items table. (makes sense because they are not related, although customer exists as a field in both tables). Is it possible to make this method work where any filter the user applies will affect BOTH tables and therefore give an accurate rate? Is there a limit to how many common "filter" tables I can create and link to both? Is there a way to do it other than creating tables for each field? really trying to avoid this since it would be about 10 fields.1.6KViews0likes9CommentsReturn Items that have Neither Item Selected
A DAX Puzzler: I have an inventory problem I'm trying to solve. Each location has inventory in a table TableQOHRemoveZeros. If I select the items in the slicer, I want it to return locations that have NEITHER item. E.g. if I select iPhone 12 and iPhone 13 in the Slicer, the only location that should return is Location 114 Plum Lane. DISTINCT(TableQOHRemoveZeros[Device Name Short]) I thought that I could query this table after the items were selected against all of the locations using Except, but I don't think it's possible to query a table created by slicer selection. LocationsWithoutSelectedDevices2 = VAR SelectedLocations= ALLSELECTED(DisDeviceNameShort[Device Name Short]) VAR AllLocations = All('Current Hierarchy'[Sales Code]) Var ExcludeSelectedLocation = EXCEPT(SelectedLocations,AllLocations) Return (ExcludeSelectedLocation) Error:"A table with multiple values was returned when a single value expected" A real doozy. Any way to achieve this? I think it would have huge benefit to others as well and would greatly streamline a process like this. Sales Code Location Device Name Short 111 123 Main St iPhone 12 111 123 Main St Iphone 16 111 123 Main St Iphone 11 112 111 Elm St Iphone 10 112 111 Elm St Iphone 13 112 111 Elm St iPhone 14 114 800 Plum ln iPhone 15 114 800 Plum ln iPhone 16 114 800 Plum ln iPhone 17Solved1.3KViews0likes6CommentsDAX Getting Same Grand Total Amount in Each Row
If I select 'Current Hierarchy'[Sales Code] and 'Quota Results'[Location Quota], it displays the correct results row by row. But I have onother table called 'BCP' which has a [Sales Code]. When I select it with Location Quota it gives me the same grand total in each row. So I created a relationship between 'Current Hierarchy'[Sales Code] and 'BCP'[Sales Code]. But the results are still the same. Any idea how to fix?Solved1.1KViews0likes4CommentsDAX formula IF measure returns null value then search ID and match with another table ID
I need Expert support on below query. I've made below table using existing datasets and measures, which gives me SW_PART value against each of opportunity using multiple criteria. Now, I want next level DAX calculation to merge/show single row which is first row, the calculation should give me second row result into First row, I mean value 5720 (under OPP-10225) -should be visible/copy to OPP-10236 and later I will hide the OPP-10225 from the table visual. SW_PART is already a measure Opportunity ID Opportunity Name End Customer Name SW_PART OPP-10236 VD OPS_Support Apple OPP-10225 VD OPS Apple 5720 OPP-10237 MD OPS_Support MS OPP-10226 MD OPS MS 8890 OPP-10238 DD OPS_Support Virgin OPP-10227 DD OPS Virgin 23345 To identify the correct opportunity ID, I've made below excel table, which I've already imported to PowerBI. This table help to identify the which NULL Opportunity ID from above table matches Original OPP_ID to this table then search Product OPP_ID = Opportunity ID and get the value or calculate value then return the value against Opportunity ID Original Opp_ID Product OPP_ID Product Quote _PK Quote ID OPP-10236 OPP-10225 TST-024693 7D1E2089-3CF9-ED11-8F6E-6045BD11F57A OPP-10108 OPP-10425 TST-025442 BFB78603-F7B8-ED11-B596-00224801E567 I've used below DAX but it's showing same values in against all NULL opportunities SW_PART_Filled = VAR ValuefromOPP_ID = CALCULATE( [SW_PART], FILTER( ALL('Quote Details - All Records'), 'Quote Details - All Records'[_FK Quote ID] = MAX('VN-OPP Identifier'[_PK Quote ID]) ) ) RETURN IF( ISBLANK([SW_PART]), ValuefromOPP_ID, [SW_PART] ) Results I am getting as below, which showing same results against opportunity Opportunity ID Opportunity Name End Customer Name SW_PART OPP-10236 VD OPS_Support Apple 5720 OPP-10225 VD OPS Apple 5720 OPP-10237 MD OPS_Support MS 5720 OPP-10226 MD OPS MS 8890 OPP-10238 DD OPS_Support Virgin 5720 OPP-10227 DD OPS Virgin 23345Solved933Views0likes3CommentsCreate Dynamic Measure Tables using Values from Slicer
I have a Dynamic Measure Table and need to pass in the slicer value. Unfortunately the value of the slicer is not being passed into it. I tried creating a measure to select value from the slicer and input into the dynamic table and still no luck. The output of the Dynamic table is displayed via a Table Visualization. I tested the Year and Month Measures in cards and they are fine. Has anyone come across this issue before? Selected Year = SELECTEDVALUE('Date'[Year]) Selected Month = SELECTEDVALUE('Date'[Monthnumber]) TestMetricsTable = VAR selectedyear = [Selected Year] VAR selectedmonth = [Selected Month] VAR DataTempTable = DATATABLE ( "Category", STRING, "Year", INTEGER, { { "none", 0 } } ) // RETURN SELECTCOLUMNS ( DataTempTable, "Category", "Selected Date", "Year", selectedyear, "Month", selectedmonth )1KViews0likes4CommentsProper Calculation of Facts/Values from Dimensional Table
Source ( Download Here ) Userstory: Imagine you have big star shema model and important values/facts in dimensional Tables. And you don't want to mess up your fact table with multiple low cardinality columns. Question: How to proper handle these dimTable facts/values? Simplified Example: Question: How to get DESIRED YearVolume (because by default it gives 2200 (Totals) in each cell)?Solved1.7KViews0likes5CommentsCalculated Column Based on two tables
I have two tables: Table 1 Name Email John Doe [email protected] John Doe [email protected] Larry Fitz [email protected] John Elway [email protected] John Elway [email protected] John Elway [email protected] Table 2 Name Email Date Submitted John Elway [email protected] 1/1/2023 Joe Burrow [email protected] 5/1/2022 Larry Fitz [email protected] 12/1/2022 Brian Urlacher [email protected] 9/1/2022 I want to create a new column using DAX on Table 1 called "Eligibility" where: IF the inidivudla has a submission on Table 2 from the past 3 months, it says "Yes", other wise "No". Intended Result would be: Name Email Eligibility John Doe [email protected] No John Doe [email protected] No Larry Fitz [email protected] Yes John Elway [email protected] Yes John Elway [email protected] Yes John Elway [email protected] Yes Thank you in advance!Solved806Views0likes2Comments