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.
Hello,
Although using a date slicer would be great, I am trying to capture a specific number using a measure.
What I have so far is a measure that reads the daily average and gives me a usage per minute value. I use usage (divided by 1000) and run time. We can call this DailyAverage. This converts usage to 1000s and hours ran to minutes.
DailyAverage =
Var Usage = SUM(Table[Usage]) * 1000
Var RunTime = SUM(Table[HoursRan]) * 60
Return
DIVIDE(Usage,Runtime)
I have a date column called Table[Date] where I want to calculate the daily readings from the last 90 days and find an average. How would this measure look?
CALCULATE(AVERAGE(Table[DailyAverage]), Date Function I am having trouble with)
Thanks in advance!
Solved! Go to Solution.
@water-guy-5 Maybe:
Measure =
VAR __Table =
ADDCOLUMNS(
FILTER(Table[Date], [Date] >= TODAY()-90),
"__DailyAverage",[DailyAverage]
)
RETURN
AVERAGEX(__Table, [__DailyAverage])
@water-guy-5 Maybe:
Measure =
VAR __Table =
ADDCOLUMNS(
FILTER(Table[Date], [Date] >= TODAY()-90),
"__DailyAverage",[DailyAverage]
)
RETURN
AVERAGEX(__Table, [__DailyAverage])
User | Count |
---|---|
119 | |
78 | |
59 | |
52 | |
48 |
User | Count |
---|---|
171 | |
117 | |
61 | |
59 | |
53 |