Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi there,
I'm hoping I can find a solution on the below:
I have created an Average for my numerical variable (Date Diff) which I can effectively aggregate to my FiscalQuarter date variable which is in a seperate Calendar table. I have used the below Measure for this:
Thanks for any help on this.
Solved! Go to Solution.
Hi @Mehal1996 ,
I have created a simple sample, please refer to it to see if it helps you.
Create a meaure.
Measure =
CALCULATE (
SUM ( 'Table'[datediff] ),
FILTER (
ALL ( 'Table' ),
'Table'[Index] <= SELECTEDVALUE ( 'Table'[Index] )
&& 'Table'[YEAR] = SELECTEDVALUE ( 'Table'[YEAR] )
)
)
If I have misunderstood your meaning, please provide more details with the desired output and pbix file without privay information.
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Mehal1996 ,
I have created a simple sample, please refer to it to see if it helps you.
Create a meaure.
Measure =
CALCULATE (
SUM ( 'Table'[datediff] ),
FILTER (
ALL ( 'Table' ),
'Table'[Index] <= SELECTEDVALUE ( 'Table'[Index] )
&& 'Table'[YEAR] = SELECTEDVALUE ( 'Table'[YEAR] )
)
)
If I have misunderstood your meaning, please provide more details with the desired output and pbix file without privay information.
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Mehal1996 , You need measure like
YTD Sales = CALCULATE(AverageX(Values(Date[FY Qtr]), [Average Date Diff]) ,DATESYTD('Date'[Date],"10/31"))
or rolling
Cumm = CALCULATE(AverageX(Values(Date[FY Qtr]), [Average Date Diff]) ,filter(all('Date'),'Date'[date] <=max('Date'[date])))
Hi Amit,
Thanks for the response here.
I tried both and they didn't seem to work for me. For the first solution, I get the below error:
Column 'RowNumber-2662979B-1795-4F74-8F37-6A1BA8059B61' in table 'Calendar' cannot be found or may not be used in this expression.
For the second solution, I get the below output shown in the 3rd column of the table in the image below:
Hopefully I am not doing something wrong.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
109 | |
89 | |
76 | |
66 |
User | Count |
---|---|
125 | |
111 | |
100 | |
83 | |
71 |