Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi All,
I would appreciate your help on a measure that I have spent several days trying to add to a pivot table.
I would like to calculate last year (2018) average nb of leads, using the data format below. I have tried to use several DAX formulas but nothing worked.
My aim is to recreate the following pivot table:
Many thanks in advance.
Veronica
Solved! Go to Solution.
Thank you for taking the time to get back to me. Unfortuantely, the formula returns an incorrect average.
I have checked and no filters were applied. The above formula seems to return a monthly average for 2018.
I found that the following DAX formual works:
2018 AVG Leads= CALCULATE (
SUM ( Table[Leads(nb) by Channel]),
FILTER(Table, AND (Table[Date],(Table[Year]=2018))))/12
@Anonymous ,
You may create a measure using DAX like pattern below:
Result = CALCULATE ( AVERAGE ( Table[Leads(nb) by Channel] ), FILTER ( Table, YEAR ( Table[Date] ) = YEAR ( TODAY () ) - 1 ) )
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you for taking the time to get back to me. Unfortuantely, the formula returns an incorrect average.
I have checked and no filters were applied. The above formula seems to return a monthly average for 2018.
I found that the following DAX formual works:
2018 AVG Leads= CALCULATE (
SUM ( Table[Leads(nb) by Channel]),
FILTER(Table, AND (Table[Date],(Table[Year]=2018))))/12
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
72 | |
62 | |
51 | |
48 |
User | Count |
---|---|
204 | |
86 | |
62 | |
59 | |
56 |