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.
Hello All,
Its been a while I have posted but hoping I will get some help on an issue I am working on.
I am working on a report where I am suppose to get weekly data for packing and shipping. So, the definition for week in the organization is from Friday 7:00 am - Friday 6:59 am. So, I am supposed to get a total of packed items for each week. I am using first day of week as friday, but stuck on the time constraint. I am struggling to get data between the times. In other words, the week sum is also inclusing data from end date Friday after 7:00 am which is not correct.
Ex: 04/16 7:00 am - 04/23 6:59 am sum of packed items - 345 (supposed to be the result)
Instead I am getting, 445 which is the data from 04/16 12:00 am - 04/23 11:59 pm
Please advice on this.
Thanks,
Prashanthi
@Anonymous
The answer to 90%+ problems is to have a correct data model. If a model is twisted in any way, no amount of DAX can make it right. You should have a custom calendar in your model that would take into consideration the specifics of your business. About custom calendars: Create Custom Time Intelligence Calculations in #dax #powerpivot #tabular - SQLBI
User | Count |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
12 | |
11 | |
9 | |
6 |