
Creator III
2016-05-30
08:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
dynamic name alter state in set analisys
Hi, people!
For example
=sum( { ['Year_1_' & [Shop] ] } )
as
=sum({[Year_1_Shop1]} sales)
Year_1_Shop1 - it's name alter state
where shop it's field, and shop = shop1,
but shop2 will be =sum({[Year_1_Shop2]} sales)
How do it?
2,012 Views
- « Previous Replies
-
- 1
- 2
- Next Replies »
12 Replies

Creator III
2016-05-30
07:16 PM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Not a variable, but the name of an alternate state
298 Views

Employee
2016-05-31
07:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This kind of thing you can´t do
=sum({[$(='State_spec_'&[Dim1])]}Expression1)
Set analysis are not evaluated per row, it´s evaluated before the aggregation of the object, reducing the record set will be evaluated.


MVP
2016-05-31
08:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
See also my first answer with a possible workaround

- « Previous Replies
-
- 1
- 2
- Next Replies »