Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi network
I need help to create a function that allows me to generate an average measure based on the dominating direction.
Exampel: if the dominatingDirection =-1, then take the average of difference
The goal is to see the average value above value 0 and what is below value 0.
Kind Regarts
Solved! Go to Solution.
There we go:
Average down = CALCULATE(AVERAGE('Table'[Difference]);FILTER('Table';'Table'[DominatingDirection]=-1))
There we go:
Average down = CALCULATE(AVERAGE('Table'[Difference]);FILTER('Table';'Table'[DominatingDirection]=-1))
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 13 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 30 | |
| 26 | |
| 17 | |
| 11 | |
| 10 |