Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi all
I have a table with daily values:
1 Jan: 10
3 Jan: 15
4 Jan: 20
etc
I would like to have a new table with
Jan: average for table above (in this case 15)
How do I do this?
Solved! Go to Solution.
based on the sample data you provided, you can try this to create a new table.
Table 2 =
VAR tbl=ADDCOLUMNS('Table',"Month",FORMAT('Table'[date],"mmm"))
return SUMMARIZE(tbl,[Month],"average",AVERAGE('Table'[value]))
Proud to be a Super User!
Hi @easyleesie ,
What do you need the result in a new table for?
Have a look at the attached PBIX file.
based on the sample data you provided, you can try this to create a new table.
Table 2 =
VAR tbl=ADDCOLUMNS('Table',"Month",FORMAT('Table'[date],"mmm"))
return SUMMARIZE(tbl,[Month],"average",AVERAGE('Table'[value]))
Proud to be a Super User!
@easyleesie , Assume you have date in the table. Have a month year in your table or date table
Month Year = format([date],"YYYYMM")
Try a measure like
Averagex(Summarize(filter(Table, Month(Table[Date])=1),Table[Month Year], "_1", Sum(Table[Value])),[_1])
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |