Forum Discussion
Aggregation on rows with user selected filters
Hello:
I am trying to recreate an analysis done previously with QlikView:
A sales offer includes five types of offer (depending on the team who worked on the offer), many features and a few versions. There are five types of sales offers . The purpose of the report is to compare two types of an offer. For doing so, the report includes three slicers (offer id, offer type 1 and offer type 2). Once selected a value for the slicers, the report should display:
Group by offer, feature, feature value for offer type1, feature value for offer type 2 and concatenatex for revisions.
The point is this table is generated once the user has selected offer type 1 and offer type 2, so I can't create it with Power Query and I can't create a calculated table with DAX either; create a table with all the combinations of all offer types is impossible due to the size.
As far as I know, I should create three DAX measures (Revisions, Value type 1 and value type 2), but a measure returns an scalar value, so how I am supposed to return for one offer and one feature more than one value for each measure?
I am probably missing something because I see no way out of this. And it is probably due to my short experience with DAX and PowerBI.
Many thanks in advance,
MM.
10 Replies
- AlexisOlson
Super User
If you only have five types you can select two from, there are only 10 possible pairs to pick from, so pre-calculating all of them doesn't necessarily seem impossible but, ideally, there are better options.
Are columns D:E calculated somehow or are the values already determined a priori?
It would help greatly if you could include some sample starting data you've got before you start trying to group and concatenate.
- mmbarojaFrequent Visitor
You are right; impossible is not the best word. 🙂
I would say not desirable at all. I see this as a generic problem so I could have 100 types and then it wouldn't be an option.
Columns D:E are determined a priori. I just uploaded a sample data:
There are over 100 features for an offer but i just included 9 of them (columns D:L).
Thanks,
MM.
- AlexisOlson
Super User
Can you share what rows and columns would correspond to your initial example? I'm having trouble matching up this spreadsheet with that example.