Forum Discussion
nfuids
3 years agoNew Member
Creating a Calculated Table using date from an existing Table
Hi, I'm trying to figure out how to create a calculated table using data from an existing table. Existing table has the following column Title, StartDateDEV, EndDateDev, StartDateINTG, EndDateI...
- 3 years ago
Hi nfuids ,
You can also use the following writing.
Calculate table = FILTER ( UNION ( SELECTCOLUMNS ( 'Table', "Title", [Title], "StartDate", [StartDateDev], "EndDate", [EndDateDev], "Category", "Dev" ), SELECTCOLUMNS ( 'Table', "Title", [Title], "StartDate", [StartDateUAT], "EndDate", [EndDateUAT], "Category", "UAT" ), SELECTCOLUMNS ( 'Table', "Title", [Title], "StartDate", [StartDateINTG], "EndDate", [EndDateINGT], "Category", "INGT" ) ), [StartDate] <> BLANK () && [EndDate] <> BLANK () )The only difference between the two writing is that SUMMARIZE will deduplicate the data and SELECTCOLUMNS will not, and if this has no effect on your data, then there is no difference.
Best Regards,
Gallen Luo
v-jialluo-msft
3 years agoCommunity Support
Hi nfuids ,
You can also use the following writing.
Calculate table =
FILTER (
UNION (
SELECTCOLUMNS (
'Table',
"Title", [Title],
"StartDate", [StartDateDev],
"EndDate", [EndDateDev],
"Category", "Dev"
),
SELECTCOLUMNS (
'Table',
"Title", [Title],
"StartDate", [StartDateUAT],
"EndDate", [EndDateUAT],
"Category", "UAT"
),
SELECTCOLUMNS (
'Table',
"Title", [Title],
"StartDate", [StartDateINTG],
"EndDate", [EndDateINGT],
"Category", "INGT"
)
),
[StartDate] <> BLANK ()
&& [EndDate] <> BLANK ()
)
The only difference between the two writing is that SUMMARIZE will deduplicate the data and SELECTCOLUMNS will not, and if this has no effect on your data, then there is no difference.
Best Regards,
Gallen Luo
nfuids
3 years agoNew Member
Thank you, it worked perfectly for my needs!