avg
5 TopicsDAX Measure for Ranking the valid rows and calculating the average rating
Hi, Appreciate any help. I have two tables – Attendance, Survey I don’t have any joining keys other than email and no way of determining to which survey they responded to if the same MS forms are used for multiple learnings. Attendance Email Course Name Learning Date Status Form Key [email protected] Mathematics - 1 15/03/2026 Completed Form 1 [email protected] Mathematics - 2 20/04/2026 Completed Form 1 [email protected] Mathematics - 3 29/04/2026 Completed Form 2 [email protected] Mathematics - 1 20/04/2026 Registered Form 1 [email protected] Mathematics - 1 20/04/2026 Completed Form 1 [email protected] Mathematics - 3 29/04/2026 Completed Form 2 Survey Email Form Key Survey Date Rating [email protected] Form 1 19/03/2026 5.0 [email protected] Form 1 19/04/2026 2.0 [email protected] Form 1 22/04/2026 3.8 [email protected] Form 2 29/04/2026 2.9 [email protected] Form 1 20/04/2026 4.0 [email protected] Form 1 21/04/2026 3.5 [email protected] Form 2 28/04/2026 2.6 [email protected] Form 2 30/04/2026 4.6 Adam has registered for the learning(20/04/2026) but didn’t attend. But he was able to submit a survey with an automated link that was sent to them. This becomes an invalid submission Eve attended the learning(20/04/2026), submitted a survey before the session(through an automated link – invalid submission) and after the event. Jack attended the learning(20/04/2026) and submitted the survey. Now I need, a rank measure to rank the rows(where valid rows have rank =1). One assumption I can make to rank them is that Learning date <= surveydate<= Learning date + 2 days. a measure which calculates average rating of the valid responses Ex Mathematics – 1, learning date(15/03/2026) = average = blank(no submissions) Mathematics – 1, learning date(20/04/2026) = average = 4.0 Mathematics – 2, learning date(20/04/2026) = average = 3.8 Mathematics – 3, learning date(29/04/2026) = average = (2.9+4.6)/2 = 3.75Solved13KViews1like5CommentsDelta vs AVG for each row
Hi guys, I am trying to understand how DAX works, still fighting with that (I am not strong in contexts but I understand it little bit so please take patient ) I have following table Char Value Avg per group A 1 2 A 3 2 B 2 5 B 8 5 C 1 50 C 99 50 And my goal is to get new column which will compare current value vs avg for current group (see latest column in right) Char Value Avg per group Delta from average per group A 1 2 -1 A 3 2 1 B 2 5 -3 B 8 5 3 C 1 50 -49 C 99 50 40 I tried to use "DELTA = sumx(Avg per group - Values(Value))", context is empty, because it should be evaluated against table above.., I understand that some row context should be used to iterate calculation for each row, but dont t know the formula.. any ideas how to fix it and why it is not working? thank you in advanceSolved1.1KViews0likes5CommentsAVG New Customer Spend - DAX
Hi, I need to calculate the average spend for new customers in the previous month. However, it needs to be only for customers that have had at least 2 visits in that previous month. Formula: Spend of new customers with >=2 visits in previous month / no. of new customers with >=2 visits in previous month Fact table below - it also has a column for spend Fact table: Date dimension is joined on visit date. New customer is defined by their reg date. So the dax should count customers that registered and had two visits in the previous full month. From the above, only customer 1 should be counted, as customer 2 didn't have a registration date in the previous month. Any help would be appreciated. Thanks!Solved531Views0likes2CommentsI want to take the average of the last 3 years of the total number on a monthly and yearly basis
Hi, I have a table like this. And I want to get the second table from this table. I try to use the rollup and sum functions with the filter but I can't find any solution for getting the right amount written in the table to show in a graphic. I wrote something like this but I should get also the next 3 years and the next three years till last year. Summary last 3 years = SUMMARIZE('Summary Incident Yearly' , ROLLUP(ROLLUPGROUP('Summary Incident Yearly'[Country],'Summary Incident Yearly'[MAAND])) , "3 years AVG", CALCULATE( SUM('Summary Incident Yearly'[amount])/3 ,FILTER('Summary Incident Yearly', 'Summary Incident Yearly'[JAAR]>=2015||'Summary Incident Yearly'[JAAR]<=2017)) , "Jaartaal", "15/16/17") JAAR MAAND Country amount 2015 1 Netherlands 1082 2015 1 Belgium 174 2015 1 Belgium 8 2015 1 Luxembourg 1 2015 1 Suriname 15 2015 2 Netherlands 1181 2015 2 Belgium 212 2015 2 Belgium 5 2015 2 Luxembourg 2 2015 2 Suriname 5 2016 1 Netherlands 1244 2016 1 Belgium 259 2016 1 Belgium 23 2016 1 Luxembourg 1 2016 1 Suriname 2 2016 2 Netherlands 1252 2016 2 Belgium 264 2016 2 Belgium 19 2016 2 Luxembourg 2 2016 2 Suriname 4 2017 1 Netherlands 1088 2017 1 Belgium 243 2017 1 Belgium 17 2017 1 Luxembourg 4 2017 2 Netherlands 1054 2017 2 Belgium 288 2017 2 Belgium 15 2017 2 Luxembourg 2 2017 2 Suriname 5 AVG JAAR Maand Country AVG 15/16/17 1 Netherlands 1138 15/16/17 1 Luxembourg 2 15/16/17 1 Belgique 120 15/16/17 2 Netherlands 1162 16/17/18 1 Netherlands etc 16/17/18 1 Luxembourg etc And at the end I will get a graphic like this : Thank you for your helpSolved621Views0likes1CommentDAX Average based on text - AVG grouped by other column value
Hi! I'm certain that there is an answer to this that I've stumbled upon before. But after almost 2 days of searching (probably my searching skills that are lacking) I'll have to post a question. I have a table where two of the columns are Region and Status. What I'd like to do is to create a DAX which calculates the average count of "Status" per "Region" as well as total. In other words the end result (that I want to have as a visualization) should be: Not started Completed Delayed Europe 66% 33% Asia 100% Africa 50% 50% Latin America 100% Total 25% 62,5% 12,5% Region Status Europe Completed Europe Delayed Asia Not Started Europe Completed Africa Not Started Latin America Completed Latin America Completed Africa Completed Thanks in advance!Solved1.2KViews0likes2Comments