"grand total"
6 TopicsSUMX is not showing calculating any totals
I have the following measure: 1. Project Load = var result = CALCULATE(SUMX(SUMMARIZE(Project,Project[Project Number]),SUM(Project[Project Value])),ALL('Month Table with weeks')) return result 2. monthly_project_value = CALCULATE( sumx( FILTER('Month Table with weeks', DATE(YEAR(CALCULATE(MIN(Project[Project Start]), ALL('Month Table with weeks'))), MONTH(CALCULATE(MIN(Project[Project Start]), ALL('Month Table with weeks'))), 1) <= MIN('Month Table with weeks'[First day of Month]) && DATE(YEAR(CALCULATE(MIN(Project[Project End]), ALL('Month Table with weeks'))), MONTH(CALCULATE(MIN(Project[Project End]), ALL('Month Table with weeks'))), 1) >= MAX('Month Table with weeks'[First day of Month] ) ), [Project Load] ) ) The filter is used to get the project value for a selected month if the project is live during that month else to not show anything. Although the individual rows are coming correctly but the total is not getting calculated and shows empty.Solved970Views0likes4CommentsGráfico coluna últimos 4 meses
Recebo diariamente reclamções onde da entrega de revista, o cliente pode realizar reclamações de qualquer mês para traz, exemplo: hoje ele pode realizar reclamações do mês de janeiro. Preciso criar um gráfico com as reclamações no decorrer dos meses, sendo que somente as reclamações dos últimos quatro meses seja considerada, reclamações cadastrada depois deste período não devem ser consideradas no gráfico.Solved669Views1like2CommentsDAX Error SUMX
Hi, I'm working on a DAX and not getting the expected results. It seems that at a line item level it is calculating correctly however, at the total level it is not summing but performing the calculation at total level. which means it is ignoring the If function. Here is my DAX: SUMX('Calendar',IF(NOT(ISBLANK([Wages on Flat Units])), CALCULATE(SUM('WagesHomeCC and Fringe Line Items'[Amount]),Account_Map[Lvl 2] = "Total PR Tax"), 0)) Results: Power BI is including the $67 at the total level even though there are no wages. Does anyone know how to solve this in Power BI? Cost Ctr Calendar Wages on Flat Units PR Tax 1 2024-01 5,276 441 1 2024-02 15,288 1,305 1 2024-03 5,276 581 1 2024-04 5,426 663 1 2024-05 1 2024-06 67 1 2024-07 1 2024-08 Total (Expected) 31,265 2,990 Total (Power BI) 31,265 3,056Solved1.8KViews0likes4CommentsTotals not calculating correctly using SumX
Hey there, love this community as it's been a huge help along my career path. I have a scenario where only these 2 totals are not calculating correctly, and I've used SumX in the past with success but it doesn't appear to be working this time. Please advise. Neither of these DAX metrics are calculating the total correctly: MemberNumberDISTINCTCOUNT = SUMX ( VALUES ( Heloc3MonthAdvances[TransactionDateMonth] ), DISTINCTCOUNT ( Heloc3MonthAdvances[MemberNumber] )) MemberNumberYTD DISTINCTCOUNT = SUMX ( VALUES ( Heloc3MonthAdvances[TransactionDate].[Month]), TOTALYTD( DISTINCTCOUNT('Heloc3MonthAdvances'[MemberNumber]),DateTable[Date]))768Views0likes4CommentsTotal/Subtotal value sum of lines measure result
Hi, I'm trying to create a measure with a specific behaviour. Both cycles and time are a simple SUM, nothing else. Cycles (#/h) measure is define as seen below. Cycles (#/h) = DIVIDE([Cycles (#)],[Time (h)]) What I want a result is: - If I have more than one Line selected (as the image) the total or subtotal should be 144.17 + 83.46 = 227.63 - If I have only one Line selected the total or subtotal should be either 144.17 or 83.46, depending on which is selected. How can I achieve this? Thank you.Solved443Views0likes1CommentHow to display Grand Total correctly with USERELATIONSHIP?
Good day, I’m having trouble with getting the correct Grand Total for my pivot table. I have two tables. Fact table of email worked by an employee. It has a pkey column which is just a concatenation of week and agentId. Dimension table that has the login data of employee. It has an active citrixKey connected to Fact table.In general, Fact.agentId is the same as Dimension.citrixUsername, however an employee encountered issues with the citrixUsername and is now using Dimension.ntLogin. When I tried to build a pivot table with rows as agentId and values as sum of values, the grand total is not correct. Here are my measures: sumEmails:= SUM( 'Fact'[Value] ) calcEmails:= IF( [sumEmails] = BLANK(), CALCULATE( [sumEmails], USERELATIONSHIP('Fact'[pkey], 'Dimension'[ntloginKey]) ), [sumEmails] ) Sample991Views0likes5Comments