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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi everybody,
I am working with football GPS data. I want to express, for a specific date, the match value of a player compared to his average value on all matches.
I am struggling with my New Measure to calculate the average. Since it has to ignore date slicer, I am using the ALL function. However I still need 3 filters:
Period Name = Match (to get only the data from the matches and not training)
Date = between 2 dates that I can choose (that are different then the selected date on the page slicer)
Total minutes >90
For now I tried to get the first condition right, but these following 2 functions don't work ('Training Raw'[Total Minutes] = the column that I want to average):
Test Measure = AVERAGEX(FILTER(ALL('Training Raw'),'Training Raw'[Period Name]="Match"),'Training Raw'[Total Minutes])
Here is the pbix file. I didn't know one could visualize it without the database files.
Ok, so you want a measure with 3 filters: date, period = "Match", total > 90, and another measure with period = "Match" and total >90 but all date.
This is to calculate first measure with slicer 'date' on Page
@learninPBI5Hard thank you very much, I will try this solution.
Do you think this is my best way to go, for what I want to achieve? I want to avoid creating a new measure for every column and every situation (page with slicer or not), what I really need is to have the average value for each player to use it for calculation in different reports (percent of average, difference with average, etc), and for different columns (minutes, total distance, sprint distance, etc)
It feels like this should be the easiest way to do it, but when I see the steps, it looks very specific to each page and each of my column, while what I want is a general summarized table.
Do you think I should do it creating a new table that will summarize every column's average (with my filters) for each player?
Thanks a lot,
Kindly
Thanks for the quick answer, how can I share the pbix file?
I will try your suggestion a bit later when I'll get time.
If you have a pbix file, it would be easier for me to code targeting your variables/columns. You can try
Calculate(average(A), filter(data, data[column] = "A"), filter(), keepfilters(treatas({}, data[column)), removefilters(data2[column))