Forum Discussion
Create a complicated measure
- 8 years ago
Hi barlevitzky,
You are missing the second input in the ALLEXCEPT function. The first is the table which you have given. The second input should be the column.
Firstly, ALL function ignores all slicers and Visual/Page/Report filters.
Secondly, please post complete data of your table and post expected result here.
Regards,
Lydia
Hi Anonymous,
The data looks like this
:
The expected result:
For every string of Date+Device+Engine+Geo, I have 2 Variants so I am using a slicer for Device+Engine+Geo.
I am trying to create the column of Total D / Total C .
Thanks
- Anonymous8 years agoNot applicable
How do you get 12 for partner B under Variant C? You also have Variant B. Based on your sample data, I creating the following measures and get the following result.
Total C = CALCULATE(SUM(Table[Revenue]),ALLEXCEPT(Table,Table[Test]),Table[Test]="Variant C")
Total D = CALCULATE(SUM(Table[Revenue]),ALLEXCEPT(Table,Table[Test]),Table[Test]="Variant D")
TOTAL D/C = [Total D]/[Total C]
Regards,
Lydia- barlevitzky8 years agoHelper I
Hi, Anonymous
I got an error message: "Too few arguments were passed to ALL EXCEPT function. The minimum argument count for the function is 2. "
I don't get it. I have in each Variant more than 2 rows.
Thanks.
- Anonymous8 years agoNot applicable
barlevitzky,
Please post the DAX you use, as the error message mentioned, you pass two few arguments to ALLEXCEPT function.
Regards,
Lydia