20260429
This commit is contained in:
@@ -54,6 +54,39 @@ table 0_Measure_CalGroup
|
||||
Fact_Sales_NIAD[MARKET] = "all market"
|
||||
)
|
||||
|
||||
calculationItem _price_page_allmkt_switch =
|
||||
IF (--如果筛选market相关
|
||||
ISFILTERED ( Dim_Market[MARKET] )
|
||||
|| ISFILTERED ( Dim_MarketTA[TA] )
|
||||
|| ISFILTERED ( Dim_BrandDefaultMKT[BRAND_NAME] ),
|
||||
CALCULATE (
|
||||
SELECTEDMEASURE ( ),
|
||||
KEEPFILTERS (
|
||||
Dim_PackInfo[DATA_SOURCE] = "Retail(Quarterly)"
|
||||
),
|
||||
TREATAS (
|
||||
CALCULATETABLE (
|
||||
VALUES ( Fact_Sales[PACK_COD] ),
|
||||
Fact_Sales[MARKET] <> "all market"
|
||||
),
|
||||
Dim_PackInfo[PACK_COD]
|
||||
)
|
||||
),
|
||||
CALCULATE (
|
||||
SELECTEDMEASURE ( ),
|
||||
KEEPFILTERS (
|
||||
Dim_PackInfo[DATA_SOURCE] = "Retail(Quarterly)"
|
||||
),
|
||||
TREATAS (
|
||||
CALCULATETABLE (
|
||||
VALUES ( Fact_Sales[PACK_COD] ),
|
||||
Fact_Sales[MARKET] = "all market"
|
||||
),
|
||||
Dim_PackInfo[PACK_COD]
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
column for_measure
|
||||
dataType: string
|
||||
lineageTag: daa1dfa2-573f-47cb-9ad6-1985b05ce72e
|
||||
|
||||
Reference in New Issue
Block a user