Forum Discussion
alwong
10 months agoNew Member
Using a Table to call value into a filter
Hi There. I hope you are having a good day. This is the context: The report i'm working on has "Sales Divisions" and each one is defined differently which requires me to filter them so I get the...
- 10 months ago
alwong Sure, you could do something like the following:
Product Table = UNION ( GENERATE( { "SalesDivision1" }, {Product1, Product2, Product3,...,ProductN} ), GENERATE( { "SalesDivision2" }, {Product1, Product2, Product3,...,ProductN} ), GENERATE( { "SalesDivision3" }, {Product1, Product2, Product3,...,ProductN} ), ... ) - 10 months ago
GeraldGEmerick You can use CROSSJOIN for that.
alwong you cannot dynamically create calculated tables. You can only create table variables inside measures.
GeraldGEmerick
10 months agoSuper User
alwong Sure, you could do something like the following:
Product Table =
UNION (
GENERATE( { "SalesDivision1" }, {Product1, Product2, Product3,...,ProductN} ),
GENERATE( { "SalesDivision2" }, {Product1, Product2, Product3,...,ProductN} ),
GENERATE( { "SalesDivision3" }, {Product1, Product2, Product3,...,ProductN} ),
...
)lbendlin
10 months agoSuper User
GeraldGEmerick You can use CROSSJOIN for that.
alwong you cannot dynamically create calculated tables. You can only create table variables inside measures.