Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hi,
I have a measure which calculates the odometer readings of each vehicle. I use it with the month columns from my date table to see the odometer reading for each month. The issue is that because staff often type inaccurate odometer readings, some of the data does not make sense. For example, odometer readings for July in one instance is 40,000, then for August is 100,000 and then for September is it 45,000. So I clearly know that for August the data is inaccurate. How can I write a measure which takes the average of the months with 'normal' data and uses it in the month where data is unreasonable (so in the above eg, I would want to see 42500 for August ((40,000 + 45000)/2)).
Solved! Go to Solution.
Hi, @musafasih
Please check the below picture and the sample pbix file's link, whether it is what you are looking for.
All measures are in the sample pbix file, and the steps are numbered in front of each measure.
https://www.dropbox.com/s/br3yexur4r5xvkk/musafasihv2.pbix?dl=0
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: https://www.linkedin.com/in/jihwankim1975/
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi, @musafasih
Please check the below picture and the sample pbix file's link, whether it is what you are looking for.
All measures are in the sample pbix file, and the steps are numbered in front of each measure.
https://www.dropbox.com/s/br3yexur4r5xvkk/musafasihv2.pbix?dl=0
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: https://www.linkedin.com/in/jihwankim1975/
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
@musafasih , example with time intelligence
Next and Previous = (CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-1,MONTH))) + CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],1,MONTH))))/2
Power BI — Month on Month with or Without Time Intelligence
https://medium.com/@amitchandak.1978/power-bi-mtd-questions-time-intelligence-3-5-64b0b4a4090e
https://www.youtube.com/watch?v=6LUBbvcxtKA
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
22 | |
21 | |
20 | |
14 | |
11 |
User | Count |
---|---|
43 | |
34 | |
25 | |
23 | |
23 |