Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have a mileage spreadsheet and in it I am using the following measure to work out how much mileage they have done in each month:
Instead of trying to twist and turn your data to suit your complex calculations, transform the data to make your calculations easy. This is the first part of data modeling art. So, if the granularity of your calendar is 'day', just make sure that your fact table does not store cumulative mileages but mileages per day. Then everything will become very easy. Obviously, if the calendar granularity should be 'month,' store mileages per month.
Thank you - the data is actually from an MS Form where the drivers enter their current mileage - so I need to convert it somehow.
Hi @gingerclaire ,
In order to provide you a suitable solution, could you please provide some sample data in the table "Car report data" (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
How to upload PBI in Community
Best Regards
User | Count |
---|---|
25 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
25 | |
12 | |
11 | |
10 | |
6 |