March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi –
I believe this will be easy for you guys, but its quite difficult for me…J
Anyway, I have big data , inside that big data, I have 2 columns for:
Based on this 2 column, can you please share how to calculate average daily of last week (Monday to Friday) of inflow, outflow and backlog
Thanks
Solved! Go to Solution.
Hi -
finally found the answer
Measure3 = (CALCULATE(COUNT(Sheet1[validate source3])))/(CALCULATE(DISTINCTCOUNT(Sheet1[validate_date].[Date])~FILTER(Sheet1~Sheet1[Week])))
Hi There,
To have a fast and easy answer to this question, please provide some sample data.
This will be easier for you and easier for people creating your solution.
Robbe
Hi -
sorry, was busy with my works.
please see sample file in gdrive...
https://drive.google.com/open?id=1AQoHnI-hoysQNTKJtuI8iPBZYoN9FXiH
in this sample pbix, i've created weekly trend of previous weeks,
now based on this i want to get daily average of last week.
hope this is sample is enough.
thanks
If I understand your request correctly, this is What I added:
first I added a Column With the Day of the week:
Weekday = WEEKDAY(Sheet1[validate_date];2)
Then I calculated the average for weekdays:
avg = CALCULATE(COUNT(Sheet1[key]), Sheet1[Weekday] <6, Sheet1[Week]= WEEKNUM(TODAY())-1) /5
Now you have a measure that calculates The average count per day for last weeks workdays.
Hope this helps!
Hi @RobbeVL
thanks for your response, but your formula is not as per my expecation (please see chart #2 for result of using your formula given).
Might be i am not giving you clear request.
in first chart, it show total of inflow and outflow of the week (for monday and friday).
now using same chart, i want to have average of total inflow and outflow per week.
below if i create in excel
T
Thanks
Hi -
finally found the answer
Measure3 = (CALCULATE(COUNT(Sheet1[validate source3])))/(CALCULATE(DISTINCTCOUNT(Sheet1[validate_date].[Date])~FILTER(Sheet1~Sheet1[Week])))
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
123 | |
86 | |
73 | |
57 | |
52 |
User | Count |
---|---|
201 | |
137 | |
108 | |
73 | |
68 |