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.
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.
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 |
---|---|
11 | |
9 | |
8 | |
8 | |
7 |
User | Count |
---|---|
14 | |
12 | |
11 | |
10 | |
9 |