Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi Community! I have a table where I would like to sum up the values per individual date (i.e. move from the table on the left to the table in the middle below) and then take the daily average of those values (value on the right below). The "Date", "Segment 1", and "Segment 2" dimensions are filtered so the solution should respond to any filtering required. TO CLARIFY: I would only like the average value at the end, no need for the intermediate table I just included it for the sake of explanation.
Solved! Go to Solution.
Try a new measure like
averagex(summarize(Table[Date],"_Sum",sum(Table[Value])),[_Sum])
Try a new measure like
averagex(summarize(Table[Date],"_Sum",sum(Table[Value])),[_Sum])
Hi @amitchandak thank you again hugely for your help. I have one more question related to this. What if I wanted the average to be calculated on only a specific category (e.g. where Segment 2 = "A" or "B"). Where would this filter statement go for the rest of the summarize to work?
@Anonymous , one of the way
averagex(summarize(filter(Table, Table[Segment 2] in {"A","B"}), Table[Date],"_Sum",sum(Table[Value])),[_Sum])
averagex(summarize('Table', [Date],"_Sum",sum(Table[Value])),[_Sum])
Small change as the format wasn't quite correct before I believe. Huge thank you though!
@amitchandak - It worked beautifully. Is there a way, I can add the grouped value in a new table, so that I can maintain a history of the data.
Summarize can be used to create a new table
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
65 |
User | Count |
---|---|
136 | |
118 | |
101 | |
71 | |
61 |