average grand total
8 TopicsGetting the average of the % of column total grouped by categories
Hi, I'm trying to calculate the average between the % of column total, For example, I have this Table1 as example, the table has more columns and other categories, but I will sumarize it, Table1 Date --Categorie1 -Value 20/01/2024 --1 -100 20/01/2024 --1 -200 20/01/2024 --2 -150 21/01/2024 --1 -100 21/01/2024 --2 -150 21/01/2024 --2 -140 22/01/2024 --1 -20 22/01/2024 --1 -30 22/01/2024 --2 -40 From this table, I will sum the colunm "Value" and get the % from the total of each category, grouped by "Date", Date --Categorie1 --% from total 20/01/2024 --1 --66,67% 20/01/2024 --2 --33,33% 21/01/2024 --1 --25,64% 21/01/2024 --2 --74,36% 22/01/2024 --1 --55,56% 22/01/2024 --2 --44,44% Now, I need to calculate the average between each %, grouped by category, my expected result should be: TableExpectedResult Categorie1 --% average 1 --49,29% 2 --50,71% And my strugle here, is that I'm calculating the total sum of the column "Value", and calculation the fraction of the subtotal sum of each category, but it will give me a different result: TableActualResult Categorie1 ---% over total 1 ---48,39% 2 ---51,61% I would like to get my expected result as a measure, so I can work with slicers for different columns and types of categories, I appreciate any kind of help,Solved844Views0likes2CommentsSubtotal and total not showing
Hi all, I get values in the rows, but no values in the subtotal or total. I need the subtotals and total to be the average of the values. I have the following DAX: Volume compliance (on archetype level) = VAR NoOfMetrics = 2 VAR VolumeCon = AVERAGEX('SiteSnaphot Volume', ([CBM - Inbound (%)] + [CBM - outbound (%)]) / NoOfMetrics) VAR VolumeDecon = AVERAGEX('SiteSnaphot Volume', ([Cartons - Inbound (%)] + [Cartons - outbound (%)]) / NoOfMetrics) VAR VolumeFul = AVERAGEX('SiteSnaphot Volume', ([Units - Inbound (%)] + [Units - outbound (%)]) / NoOfMetrics) RETURN SWITCH(SELECTEDVALUE('SiteSnaphot Volume'[ArcheType]), "Consolidation", VolumeCon, "Deconsolidation", VolumeDecon, "Fulfilment", VolumeFul) Furthermore, if you have a solution on how I can make the VolumeCon etc. more dynamic that dividing with 2. This is a snip of the subtotal (upper white cell with no value) and row value (blue cell with 100%). Furthermore, the [CBM - Inbound (%)] etc. are measures that I have created. Hope you can help me. Viktor393Views0likes1CommentAverage in subtotal and grand total of a RANKX
Hi all, I have a database with the financial results of several companies by quarters from 2018 to 2021, I have created the following measure in order to give a ranking to each company according to the indicator that is evaluated (for this example "Ventas" and " Activos"): Measure = VAR Ratio = IF( ISBLANK( MAX(Ratios[Valor])), BLANK(), RANKX( FILTER(ALL(Ratios), Ratios[Fecha] = MAX(Ratios[Fecha]) && Ratios[Indicador] = MAX(Ratios[Indicador])), CALCULATE( SUMX(Ratios, Ratios[Valor] + Ratios[NIT] / 1000000000000) ),,DESC,Dense ) ) VAR ColumnaX = ADDCOLUMNS(Ratios,"Rank",Ratio) RETURN IF( HASONEVALUE(Ratios[Fecha]), Ratio, AVERAGEX(ColumnaX,[Rank]) ) Everything was going well until I tried to calculate in the subtotals and grand total the average of the rankings or qualifications that each company has had. For example, in the table below I selected a specific company to check the sub totals and grand totals: As you can see, the formula is not calculating the averages of the rankings for each year and quarter. Do you know if there is a solution for this, in what part of the formula I am falling? Thanks1.4KViews0likes3CommentsAverage Calls per Day DAX help
Hi, I am looking for a DAX code to calculate the average amount of phone calls per day. My data looks like that: Table 1: Call ID Date User ID BU ID Weighted Call 1 01/01/2021 01 1 0.75 2 01/01/2021 02 2 0.3 3 01/01/2021 01 1 1 4 01/02/2021 01 1 0.15 5 01/02/2021 02 2 0.3 6 01/03/2021 03 3 1 7 01/03/2021 03 3 0.9 8 01/03/2021 02 2 0.8 So far I made a measure for the sum of Weighted Calls: Weighted Calls = SUM( 'Table_1'[Weighted Call] ) Want I want do display in Power BI via matrix visual is the average (weighted) calls per day for User or BU. I made a measure for the average Calls: Average Weighted Calls per Day = AVERAGEX( VALUES( 'Table_1'[Date] ), [Weighted Calls] ) If a go ahead and make a matrix visual to show the BU ID on a row level and the [Average Weighted Calls per Day] as Values the result per row seems to be right but the Total row on the bottom is showing the sum of the different averages per row (BU ID) and not the total average across all data; for example: BU ID Average Weighted Calls per Day 1 4.3 2 5.1 3 5.8 Total 15.2 What do I need to do with my measure to display the correct Total in the Total Row? ThanksSolved3.6KViews0likes8CommentsYTD Monthly Headcount AVG
Hello, I currently am trying to get YTD Monthly Headcount AVG, as well as, Monthly HC Avg for the previous 2 months. However, my monthly HC is calculated by this formula: "Employee Count = VAR selectedDate = MAX('Date'[Date]) RETURN SUMX('employees', VAR employeeStartDate = [startDate] VAR employeeEndDate = [termDate] RETURN IF(employeeStartDate<= selectedDate && OR(employeeEndDate>=selectedDate, employeeEndDate=BLANK() ),1,0) )" Sorry I don't have any data to share. Please let me know your suggestions ASAP. Thank you!1.1KViews0likes2CommentsDax Measure to get the average of a column at total level
Hi everybody, Im trying to do a dax measure that has to calculate the total average of the values of the column cells, this measure has to work with any attributes and/or level in the pivot table (excel). The thing is I have correct values only at store level, but no for the other attributes in my model. To better describe my problem, I attached a sample power BI file. thanks a lot for your help! Power BI Sample File1.5KViews0likes2CommentsPutting up the measure to the visual with correct average grand total
Hi Guys, I am quite new to PBI, I have this problem if you can help that will be great. in the ss you can see the filters and liquid visual that use for my data. in this page I am trying to get the, lets say , total score of a country in a given month. when I choose just a month it shows me the correct result. However, when I choose april may june , it adds up the score which I dont want it like that. I want to see it as average of the total. there are single KPI(s) and months and scores in the raw data. when I choose the average in the value section it shows me the average of the KPI(s) which is again not someting that I want to see. I ve tried the GROUP BY and SUMMARIZE dax(s) to come up to a solution but ı ve ended up in the same spot where I started. I believe it is something easy but I dont know what it is . thanks for the solutions in advance782Views0likes1CommentAverage Grand Total doesn't calculate correctly
Currently , i am looking for Average in Grand total but apparently ,which ever way i write Dax my Total only aggregates instead of Average. In attached example the average that i am expecting is 0.875 for my test measure in grand total apparently , it only adds up and doesn'tr resolve the context Here is my Dax for TEST measure Test = IF( ISFILTERED('Funding Source'[Allocation]), (Sum('Capacity Fact'[AllocationAmountin Minutes])/Sum('Date'[Is Weekday]))/480, Sumx('Provider Capacity Fact' , 'Capacity Fact'[AllocationAmountin Minutes]/Sum('Date'[Is Weekday])/480 ))1.7KViews0likes6Comments