The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
I have a situation where I want to do an average of some values that occur during the week. But I want to use in my average just the values that occurs, at least, 4 times in the week (in four different days) (otherwise my average will be lower thant expected). Here's my formula:
In the table above, although the column "mean value desired" shows only the values that match the formula's conditions (for example, "antony", "lucas silva", "romulo" and "vinicius jau" have values in "contagem de sessões" of 4 or less), the final average in total (34299,03) take into account all the values; the true value should be 39048 and be placed where is "34299" in the next picture.
The column "Semana" (week in portugues) came from the DAX WEEKNUM, with week starting on monday.
In fact what I wnat to do is
Again, it excludes the values unwanted from the table, but the calculation continues taking into account all values