Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello,
I'm trying to create a new dimension in the form of a boolean value.
The table looks like the following:
| cart_id | payment_status |
| 1 | pending |
| 1 | authorised |
| 1 | captured |
| 2 | pending |
| 2 | failed |
with the additional column "success" I wish to mark all "cart_id" with '1' if their payment was authorised and all others with '0'.
The challenge is that one cart_id can have many other payment_status but the only one I care for is "authorised".
| cart_id | payment_status | success |
| 1 | pending | 1 |
| 1 | authorised | 1 |
| 1 | captured | 1 |
| 2 | pending | 0 |
| 2 | pending | 0 |
Would be super happy for any advise on how to create this dimension in Power BI
Thanks in advance
This calculated column DAX counts the number of times a cart is authorised. If any number is returned then the column is set to 1, otherwise 0.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 21 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 35 | |
| 31 | |
| 20 | |
| 13 | |
| 10 |