Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi All!
I am relativly new to Power Bi and Im failing on such a simple task. Hopefully someone can help me with that.
I have a table the following table:
Sales ID | Payment Method |
1 | cash |
1 | card |
2 | cash |
2 | paypal |
3 | paypal |
I tried to create a measure which calculates the number of payments with multiple payment methods when paypal is used.
So the result in this case would be that there is one payment with multiple methods when one is paypal (Sales ID 2).
I tried to get the result in multiple ways. One was to use the Summarize function to group the table by sales id and than create a row which retrieves the number of payment methods used and filter that with payment method = paypal.
Either way I did not get it done to create the measure. I hope someone of you might have a good solution for this.
Thanks in advance!
Solved! Go to Solution.
Try this:
COUNTROWS (
FILTER (
ADDCOLUMNS (
VALUES ( Table1[Sales ID ] ),
"Methods", CALCULATE ( DISTINCTCOUNT ( Table1[Payment Method] ) ),
"UsedPaypal", "paypal" IN CALCULATETABLE ( VALUES ( Table1[Payment Method] ) )
),
[Methods] > 1 && [UsedPaypal]
)
)
Try this:
COUNTROWS (
FILTER (
ADDCOLUMNS (
VALUES ( Table1[Sales ID ] ),
"Methods", CALCULATE ( DISTINCTCOUNT ( Table1[Payment Method] ) ),
"UsedPaypal", "paypal" IN CALCULATETABLE ( VALUES ( Table1[Payment Method] ) )
),
[Methods] > 1 && [UsedPaypal]
)
)
Hello Alexis. Thank you so so much!
It worked perfectly.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
9 | |
8 | |
8 |
User | Count |
---|---|
14 | |
12 | |
11 | |
11 | |
8 |