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 Everyone,
I am new to Power BI and in need of calculating Status for each complaint Nbr.
Criteria:
New - Created in the current month (can have both open/Closed complaints)
WIP - Open Complaints created prior to current month (closed month is null)
Closed - Closed Complaints in that month (but not created in that month as it will come under New status)
Everything is based on the 1st day of new month.
For example
I need to calculate "Status" field for each month as below using DAX function.
Sample dataset for Jan 2019:
Complaint Nbr CreatedMonth ClosedMonth Status
C1 Jan 2019 Jan 2019 New
C2 Dec 2018 WIP
C3 Jan 2019 New
C4 Dec 2018 Jan 2019 Closed
Thanks in Advance!!
Solved! Go to Solution.
@Anonymous , refer if this blog can help
@amitchandak : Hi,
I am facing difficulty in finding a solution for Closed status. I tried using the below formula for the same. But it is not giving correct result as expected.
For Closed : Closed in the respective months but those complaints should not be created in the same month.
Closed = calculate(DISTINCTCOUNT(Data[Complaint Nbr]),filter(Data,Month(Data[Creation Date])<> month(Data[Closure Date])) ,not(ISBLANK(Data[Closure Date])))
Kindy help me on the same.
@amitchandak : Thanks for your reply.
I am following your post to implement certain logic in my dataset. However, is there anyway to count distinct value of Compliant Nbr? In my dataset, i have duplicate complaint Nbr based on other dimension.
For Current Employee(in your dataset), it is similar to my New Status except that it is fetching all rows because of Countx function.
But i need to derive distinct count of complaint Nbr.
Please let me know if this is possible. Thank you in advance!!
@amitchandak : Sorry, i just figured how to find distinct count in filtered table and it works now.
Thank you!
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 | |
8 | |
8 | |
7 |
User | Count |
---|---|
13 | |
12 | |
11 | |
11 | |
8 |