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,
Report link
In the daily view, data for the 6th is missing.
In the weekly view, the division by 7 is used to calculate averages, but when there is missing data for specific days, like on the 7th and 14th of January 2024, the division should be (by 6) adjusted accordingly. Instead of dividing by 7, it should only divide by the number of available days, which in these cases would be 6, since data is not available for the 6th and 13th of January 2024.
Kindly help how I can perform this calculation
Solved! Go to Solution.
Hi, @HKteck
Based on the information you gave, I have created a table
Please follow these steps:
Available Days = CALCULATE(
DISTINCTCOUNT('Data 2024'[Date]),
FILTER(ALLSELECTED('Data 2024'),'Data 2024'[Date]<=MAX('Data 2024'[Date])
))
Quantity Weekly = 'Data 2024'[Quantity]/'Data 2024'[Available Days]
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @HKteck
Based on the information you gave, I have created a table
Please follow these steps:
Available Days = CALCULATE(
DISTINCTCOUNT('Data 2024'[Date]),
FILTER(ALLSELECTED('Data 2024'),'Data 2024'[Date]<=MAX('Data 2024'[Date])
))
Quantity Weekly = 'Data 2024'[Quantity]/'Data 2024'[Available Days]
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@HKteck , Assume you already have a measure M1 and using the date table and date and week coming on axis from the date table
You can use measure like
Averagex(Values(Date[Date]), [M1])
In this it will take only 6 days avg it data is available for 6 days of week
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
123 | |
78 | |
49 | |
38 | |
37 |
User | Count |
---|---|
196 | |
80 | |
70 | |
51 | |
42 |