Forum Discussion
Jordi
8 years agoAdvocate I
filter data by groups
Maybe it is an very obvious question, but I'm not sure how to search for it (in english) so I'll give it a try here. I have a table with invoices with sales for a file (every file has an amount o...
Zubair_Muhammad
8 years agoCommunity Champion
Hi Jordi
You can do this with the help of a small PARAMETER table
Please check this post..
http://community.powerbi.com/t5/Desktop/Company-Durations/m-p/365503#M165285
- Jordi8 years agoAdvocate I
Thanks for the hint Zubair_Muhammad
Added the Parameter table, and added a calculated column with this formula: (I want to count the Files within the parameters)
Category = VAR Sales = SUM('Sales'[sales]) RETURN CALCULATE ( DISTINCTCOUNT('Sales'[File] ); FILTER ( Parameters; Sales >= Parameters[Start] && Sales < Parameters[End] ) )But that return the value "1"
Table "Parameters"
(Column "Index" is added for ordering purposes)