Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello Power BI Community,
I am relatively new to Power BI. I'm about 3 weeks in now and learning fast. What an amazing tool!
I'm trying to create a measure to count the number of instances with two conditions. One condition is that it containts the word "PENDING" in one column and prior to 2019 for the date.
This is what I have:
Solved! Go to Solution.
@MatthewFiero
Try it this way:
WIP =
CALCULATE(
COUNTROWS(FAST),
FILTER(
FAST,
FAST[Claim Status] = "PENDING" && FAST[Create Date] < DATE(2019,01,01)
)
)
________________________
If my answer was helpful, please consider Accept it as the solution to help the other members find it
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@MatthewFiero
Try it this way:
WIP =
CALCULATE(
COUNTROWS(FAST),
FILTER(
FAST,
FAST[Claim Status] = "PENDING" && FAST[Create Date] < DATE(2019,01,01)
)
)
________________________
If my answer was helpful, please consider Accept it as the solution to help the other members find it
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Hi @Fowmy ,
Thank you for such a quick response. What if the claim status only contains the word "PENDING"? In my case there are multiple different pending status.
I had no idea you could use the && function like that which should be very helpful in the future!
Thank you,
Matthew
@MatthewFiero
The DAX that I shared will only take into account if the value is only "Pending".
Hope the solution works for you
________________________
If my answer was helpful, please consider Accept it as the solution to help the other members find it
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Looks like this may work except I have 1 extra value for some reason (I'll have to check the data)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
95 | |
80 | |
68 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |