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 moreShape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.
Hello,
I have received a data set that is grouped by date, each row has a start date and an end date among other key identifiers. I want to ungroup by date these in order to give a count on each day. However instead of just a static count, I want to replicate each day grouped by key characteristics. This would create a new table instead of just a column on the date table. Each entry would have a day and then be grouped by key characteristics. I think I need to do a join with a date table but from there I am lost.
Ive made an example table of what I am trying to do:
This is the orginal table
This is what Im trying to get at, ive only included a few dates but ideally this would populate over the entire month of Febuary in this example. For my actual data set it would be crated over the entirity of the data set\.
Here is the text from the first table:
Name | Start Date | End Date | Car | State |
Pete | 2/1/2018 | 2/15/2018 | Civic | California |
Samson | 2/1/2018 | 2/28/2018 | Civic | Texas |
Edgar | 2/15/2018 | 2/18/2018 | Accord | Texas |
Pete | 2/16/2018 | 2/22/2018 | Accord | Texas |
Edgar | 2/19/2018 | 2/22/2018 | Civic | Texas |
Sarah | 2/1/2018 | 2/15/2018 | Odessy | Wyoming |
Thank you in advance!!
-Hunter
Solved! Go to Solution.
Hi Hunter,
Please download the demo from the attachment.
Table = SELECTCOLUMNS ( FILTER ( CROSSJOIN ( 'Calendar', 'Table1' ), 'Calendar'[Date] >= Table1[Start Date] && 'Calendar'[Date] <= Table1[End Date] ), "Date", [Date], "Car", [Car], "State", [State] )
Best Regards,
Hi Hunter,
Please download the demo from the attachment.
Table = SELECTCOLUMNS ( FILTER ( CROSSJOIN ( 'Calendar', 'Table1' ), 'Calendar'[Date] >= Table1[Start Date] && 'Calendar'[Date] <= Table1[End Date] ), "Date", [Date], "Car", [Car], "State", [State] )
Best Regards,
Thank you! Will implement this method on my data table.
-Hunter
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Check out the November 2024 Power BI update to learn about new features.
User | Count |
---|---|
92 | |
89 | |
83 | |
78 | |
49 |
User | Count |
---|---|
146 | |
137 | |
109 | |
68 | |
55 |