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.
Hi,
i need to create a measure which will calculate average of column- "visits" from table 'A' only for the latest month from column - "fiscal month" which is also part of table "A" using averagefx or any other function
Solved! Go to Solution.
Hi @Jane689
you may try
Measure =
VAR MaxMonth = MAX ( tableA[fiscal month] )
RETURN
AVERAGEX (
FILTER ( tableA, tableA[fiscal month] =MaxMonth ),
tableA[visits]
)
Hi @Jane689
you may try
Measure =
VAR MaxMonth = MAX ( tableA[fiscal month] )
RETURN
AVERAGEX (
FILTER ( tableA, tableA[fiscal month] =MaxMonth ),
tableA[visits]
)
Hi @Jane689
Can you please provide sample data as well as expected outcome as an example?
Best regards
Michael
-----------------------------------------------------
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Appreciate your thumbs up!
@ me in replies or I'll lose your thread.
User | Count |
---|---|
26 | |
10 | |
8 | |
6 | |
6 |
User | Count |
---|---|
31 | |
11 | |
10 | |
10 | |
9 |