Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Dax to get active contracts in the current year and last year by using status Colum.

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.

Sriramprasad_0-1708502184881.png

 

Scenario 2 : with the help of above active/Inactive status we need to calculate below win/Loss

 20222023WIN or LOSS
case 1InactiveInactiveNot Applicable
Case 2InactiveactiveWIN
Case 3activeactiveORGANIC
Case 4activeInactiveLOSS



Thanks in advance.

2 REPLIES 2
Anonymous
Not applicable

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.

lbendlin
Super User
Super User

Sounds straightforward. What have you tried and where are you stuck?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.