Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi all,
I created a measure that is a distincount of a column (ie invoice number). Now I'd like to use distintcount as a filter in a dashboard.
Example: in table object I have first column that is distinctcount of invoices and second one is the customer name. So for each customer I have number of invoices sent.
Now I'd like to have a filter field to select only customers that have less than or more than a certain number of invoices.
How to do it?
Thanks!
Solved! Go to Solution.
Hi, @sabinocivita
You can consider creating a filter measure and then applying it to the table vissual filter pane to filter data.
visual filter =
IF (
ISFILTERED ( 'filter field'[count] ),
IF (
[distinctcount of invoices] <= SELECTEDVALUE ( 'filter field'[count] ),
1,
0
),
1
)
Best Regards,
Community Support Team _ Eason
Hi, @sabinocivita
You can consider creating a filter measure and then applying it to the table vissual filter pane to filter data.
visual filter =
IF (
ISFILTERED ( 'filter field'[count] ),
IF (
[distinctcount of invoices] <= SELECTEDVALUE ( 'filter field'[count] ),
1,
0
),
1
)
Best Regards,
Community Support Team _ Eason
Can you please tell me how to create the group table?
You can try create calc table like this:
Calc table = SUMMARIZE ( 'Table', 'Table'[ClientID], "InvoiceCount", DISTINCTCOUNT('Table'[InvoiceID]) )
Hi!
You can do it by different ways.
You can create group table that calculate number of invoices for different customer. And then filter it.
Also you can create new column for you table where you can calculate number of invoice for current customer.
And then filter by customer who have number of invoices > 1.
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
28 | |
12 | |
10 | |
10 | |
6 |