custom calendar
3 TopicsInteresting effects with calendar-based time intelligence
Hi guys After some research and testing, I found several interesting effects with the new calendar-based time intelligence. For example, how dates are shifted when calculating the PY with leap years, or some strange effects with weekly calculations. I summarized them here for everyone to read: https://towardsdatascience.com/when-things-get-weird-with-the-custom-calendars-in-tabular-models/ I hope that you find it interesting. Regards, SalvatoreSolved3KViews3likes18CommentsAdding custom PI Quarters to my date table
Hello all, I'm trying to create a column in my date table that groups a range of specific, defined dates into a PI Quarter. Each PI quarter needs to start with the open date of the first sprint in each quarter, and end with the close date of the last sprint in the quater. These do not align nicely with the calendar quarter. For example, here are the start and end dates for first two PI Quarters of the fistcal year: PI Quarter 1 : 6/30/2021 - 10/7/2021 PI Quarter 2 : 10/8/2021 - 1/13/2022 Desired abreviated result: I attempted to use IF and DATEBETWEEN functions, but could not achieve the desired results. PI Quarter = VAR FY22Q1StartDate = DATE ( 2021, 06, 30 ) VAR FY22Q1EndDate = DATE ( 2021, 10, 7 ) VAR FY22Q2StartDate = DATE ( 2021, 10, 8 ) VAR FY22Q2EndDate = DATE ( 2022, 1, 13 ) RETURN IF ( DATESBETWEEN ( Dates[Date], FY22Q1StartDate, FY22Q1EndDate ), "FY22 -Q1", IF ( DATESBETWEEN ( Dates[Date], FY22Q2StartDate, FY22Q2EndDate ), "FY22 -Q2", BLANK () ) ) Can anyone recommend a DAX approach that would work here?Solved1.1KViews0likes2CommentsDAX to build calendar based on views/usage metrics from PB
Hi everyone, So i am trying to start a new report to track the usage of dashboard/report (e.g Active users, number of views, views per region ....) Before i begin, i noticed that the report are only for the last 3 months period and i have downloaded the usage report files since December 2019. I have the files all together in one folder and I know how to load them from a folder. the problem is that some dates/view are duplicate as the file share the same period. My quest has two distinct parts and i would welcome any possible help. 1) First, i want to use dax to generate a calendar table for my report based on the earliest date available (11/15/2019 in this case) but i want also to know if i can use dax to dynamically change the latest date on my model (as i will be adding more and more report files) maybe using Max function or anything similar ? 2) If i manage to create my dates model based on the previous point, how can i be sure my dax measures or calculated columns only count each date and views by each user only once so that i will have no duplicates in my report ? the extract from the usage report as you may already know looks like the following: User Principal NameViewsDatePlatformDistributionMethodReportPage User 1 3 2019-11-15 Web Content Pack: M View 1 User 1 3 2019-11-15 Web Workspace View 2 User 1 2 2019-11-15 Web Content Pack: M View 2 User 1 1 2019-11-15 Web Workspace View 1 User 2 7 2019-11-15 Web Content Pack: M View 1 User 3 6 2019-11-15 Web Content Pack: M View 2 User 2 6 2019-11-15 Web Content Pack: M View 2 User 4 3 2019-11-15 Web Content Pack: M View 1 I might not be clear enough but please feel free to ask any questions as i have never used custom calendars on powerbi. Thanks in advanceSolved1.4KViews0likes4Comments