Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hello, I have a dataset that I need to expand date ranges on. The data has campaigns that only run during certain time frames. Also, some of the items are also on the normal daily list and still can be sold outside of the campaign date range. I just want to display, however the dates inside of the campaign and the amount of items sold inside of it. I want a linear date range that will display all dates inside of the date range even if the dates are in the future.
Let me know if you need more clarificaiton on anything and I will respond as soon as I can!
Thanks for the help!
Hi,
Not sure of what you want. In the Query Editor, write a custom column formula
={Number.From([Campaign Start Date])..Number.From([Campaign End Date])}
Expand this column. This will explode your table into one row for each date which falls in the range.
Hope this helps.
Say the date range is from 8/30/23 - 9/10/23, the dates from 8/30 - 9/6 will be populated since those dates have already happened. I want to also display dates in the future that have not happened yet. I am trying to build a prediction where I can see for an example that 9/8 will sell 2x than 9/3. But I can't quite seem to get dates to populate in the future.
@Brady-Linnebur , refer these ways
Measure way
Power BI Dax Measure- Allocate data between Range: https://youtu.be/O653vwLTUzM
Tables way
https://amitchandak.mediumcom/dax-get-all-dates-between-the-start-and-end-date-8f3dac4ff90b
https://amitchandak.medium.com/power-query-get-all-dates-between-the-start-and-end-date-9ad6a84cf5f2
That is a start so thank you for the info above so far. I also want to have future dates that havent happened yet becuase I want to use predictions for those future dates. Would you mind elaborating on this for this?
User | Count |
---|---|
98 | |
90 | |
82 | |
73 | |
67 |
User | Count |
---|---|
115 | |
102 | |
98 | |
71 | |
66 |