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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello,
I built this dax formula to calculate the average. to prevent it from changing for each row I inserted all. I then filtered by incremental to get an average based on incremental only. However, I would also like the average to change based on the year I select as the filter. Only the way I set it up doesn't work CALCULATE((AVERAGEX(ALL('TABEL COMPLETED'), 'TABEL COMPLETED'[GM LC/KG])),'TABEL COMPLETED'[Scenario]="Incremental")
how can i do this?
thank you
Hi @gigi97 ,
Please have a try.
Create a measure.
measure =
AVERAGEX (
FILTER (
ALL ( table ),
table[scenario] = "Incremental"
&& table[year] = SELECTEDVALUE ( table[year] )
),
table[GM LC/KG]
)
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ Rongtie
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information or anything not related to the issue or question.
If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!