Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hello.
Please help me with a question, I've been looking for this solution for days.
I have the table:
I need to filter the Blue, Green and Pink services.
Returning only the number of customers who have these values, in PWBI the card is counting all customers, for example who has the Blue services, but the idea is to filter only who has the 3 services together.
I tried with calculate, with filter, keep filters, everything, everything selected, but without success.
This is just one case, but I have a project, which I want to filter N possibilities, for example, Blue with Pink, or Orange with Indigo, in short, I need a formula that is adaptable.
Solved! Go to Solution.
My friend, thank you very much.
I could never think this way, it helped me a lot!
Hi @Eder_Govoni ,
Would you copy and paste this table rather than add a picture. We might be able to give you a solution.
Thank you,
If you would share your pbix, or dummy up some values in Excel both for current and expected data. Please copy and paste them into your post, rather than doing a picture, we may be able to help you.
Please read this post to get your question answered more quickly:
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
Nathaniel
Proud to be a Super User!
sure, sorry for the mistake.
Here is my pbi.
https://drive.google.com/file/d/1nyQED4e2HHvgCu_1rAMt2RFAL39kcry6/view?usp=sharing
Hi @Eder_Govoni ,
Please try this measure:
test =
VAR __SelectedServices = ALLSELECTED('Case Client'[Service])
VAR __ServiceCount = COUNTROWS(__SelectedServices)
RETURN
CALCULATE (
DISTINCTCOUNT ( 'Case Client'[Client] ),
FILTER (
ADDCOLUMNS (
VALUES ( 'Case Client'[Client] ),
"ServiceCount", CALCULATE (
COUNTROWS ( 'Case Client' ),
'Case Client'[Service] IN __SelectedServices
)
),
[ServiceCount] = __ServiceCount
)
) + 0
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
My friend, thank you very much.
I could never think this way, it helped me a lot!
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 6 | |
| 6 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 22 | |
| 10 | |
| 10 | |
| 7 | |
| 5 |