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.
Id like to build a new column in my PowerBI table called "average". the formula that builds the average column I want to be similar to how excel's AVERAGEIFS folrmula works. Meaning the content of the data in the column is an average dependant on multiple other columns in that table. So all rows with the same combination of descriptor columns would show the same average number.
Solved! Go to Solution.
calculated column=averagex(filter(table,table[vehicle]=earlier(table[vehicle])&&table[size]=earlier(table[size])&&table[color]=earlier(table[color])),table[price])
Hi there,
Similarly, I am trying to adapt the formula below from excel sheet to power bi.... is this even possible in power query? Where the column will get the average of amount considering based on 5 conditions (previous 4 weeks of the same week day , subgroup and subgroup2 and is greater than 0) and the result for that record will be used when it moves to the next record.
=IFERROR(AVERAGEIFS(amount,amount,">0",Weekday,Table1[@[Week Day]:[Week Day]],Subgroup,Table1[@[SubGroup]:[SubGroup]],Subgroup2,Table1[@[SubGroup2]:[SubGroup2]],date,">="&Table1[@[Date]:[Date]]-28),))
Thanks in advance.
calculated column=averagex(filter(table,table[vehicle]=earlier(table[vehicle])&&table[size]=earlier(table[size])&&table[color]=earlier(table[color])),table[price])
That's it, thank you!!!
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 |
---|---|
47 | |
23 | |
20 | |
15 | |
13 |
User | Count |
---|---|
51 | |
42 | |
39 | |
19 | |
19 |