Forum Discussion
alwong
9 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...
- 9 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} ), ... ) - 9 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
9 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
9 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.