This commit is contained in:
2026-04-29 21:54:08 +08:00
parent 49b89352aa
commit 7babc42523
257 changed files with 106038 additions and 54243 deletions

View File

@@ -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