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
Hi All,
I have a requriment to get the active contracts by using DAX.
Scenario 1: If the contract is active in any one month of the year need to consider as a active contract. and If the contract is inactive in all the months of a year need to consider as a inactive, like below.
Scenario 2 : with the help of above active/Inactive status we need to calculate below win/Loss
| 2022 | 2023 | WIN or LOSS | |
| case 1 | Inactive | Inactive | Not Applicable |
| Case 2 | Inactive | active | WIN |
| Case 3 | active | active | ORGANIC |
| Case 4 | active | Inactive | LOSS |
Thanks in advance.
we are stuck to comepare 2023 and 2022 values, As we want to create a stacked bar chart we need the count of win/loss by month.
Sounds straightforward. What have you tried and where are you stuck?
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 20 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 33 | |
| 31 | |
| 20 | |
| 12 | |
| 11 |