Posts

CTE doesn't work in SSAS Cube. I want to find solution or convert it ti subquery

Image
0 I write this CTE query and the explanation is: WITH TP AS (select c.ID, c.PeriodCId, c.PeriodName, c.Status, c.StatusChangeDate, CAST(c.StartDate AS DATE) AS StartDate, c.EndDate,c.PeriodCode, c.PeriodType, c.ParentCId, c.MarketId, c.ParentId, c.WD, LEFT(CONVERT(varchar, c.StartDate, 112), 6) AS YEARMONTH, (select count(*) from dTimePeriod c2 where c2.ParentId = c.ID and c2.Status='actv') as #children from dTimePeriod c where (MarketId = 7) ), TP2 AS ( SELECT * FROM TP WHERE #children='12' ), TP3 AS (SELECT TP.*, CASE WHEN (TP.WD IS NOT NULL) AND (TP.StartDate <= getdate()) AND TP2.ID=TP.ParentId THEN 18 ELSE NULL END AS WorkingDays FROM TP LEFT JOIN TP2 ON TP2.ID=TP.ParentId) select * from TP3 order by ID and this is the resu...

Will expression retain the same definition if particle is changed?

Image
3 1 自分を奮い立たせるために、わざと自分の考え を声に出し 行動を始めた。 I came across the expression 声を出す on jisho.org. I don't know if replacing the expression's を with に (because を is already used earlier in the sentence) will allow me to use the 声を出す definition when translating. Is this allowed? particles particle-に particle-を share | improve this question edited 4 hours ago Chocolate ♦ 48.2k 4 58 121 asked 6 hours ago Toyu_Frey Toyu_Frey 467 1 9 ...