cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Group slicer

Hello!

 

I want to group my customers by interval of sales

Created a table with 3 columns

Interval    Min     Max

> 100k    50k     100k

> 50k      10k      50k

> 10k        0 k     10k

 

And I want to put this info in a slicer, so when I select the interval of customers who bought above 100k ths year I can see all indicators for just that sub group of customers.

 

I created a measure for that:

Sales Group = CALCULATE([Total Sales TY];
                        FILTER(VALUES(SALES[Customer_name]);
                                     FILTER(Cohort_Grouping_Sales;
                                                     [Total Sales TY] >= Grouping_Sales[Min Sales] &&
                                                     [Total Sales TY] < Grouping_Sales[Max Sales])
)
 
However the result its not filtering the group, and I keep getting the total sales, and not the sum of sales for customers in the interval.
 
Thanks 
1 ACCEPTED SOLUTION
Anonymous
Not applicable

got it!

 

Just need to insert "countrows"

View solution in original post

1 REPLY 1
Anonymous
Not applicable

got it!

 

Just need to insert "countrows"

View solution in original post

Helpful resources

Announcements
secondImage

Congratulations!

We are excited to announce the Power BI Super Users!

Wave Release 2

Check out the updates in Power BI.

Overview of Power BI 2020 release wave 2!

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors