Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi all,
I've got ConfigurationRangeDates table with theese three columns:
Id StartDate EndDate
1 01/01/2016 31/03/2016
2 01/04/2016 31/07/2016
For every row of this table. I'd like to create a new table listing all dates included in the interval StartDate - End Date
I know CALENDAR function which could help me to my own, but I can't use it:
NewTable = CALENDAR('ConfigurationRangeDates'[StartDate];'ConfigurationRangeDates'[EndDate])
I should specify an aggragation rule by Id but how?!?
Thanks a lot in advance for any hint!
Solved! Go to Solution.
@laciodrom_80 you will need a separate date table with a continuous range of dates covering the entire range of dates you want to cover. Then you can use the solution given when I had essentially the same question as you. Except where I'm using a week column you will use the date column.
You can add a calculated column to assign different values based on date. The formula can be like:
Column = IF('Table'[Date]>DATEVALUE("2016/3/31"),2,1)
Please see my sample below:
If you have many IDs, you can also use SWITCH() function
Regards,
Regards,
@laciodrom_80 you will need a separate date table with a continuous range of dates covering the entire range of dates you want to cover. Then you can use the solution given when I had essentially the same question as you. Except where I'm using a week column you will use the date column.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 63 | |
| 32 | |
| 31 | |
| 25 |