The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Solved! Go to Solution.
Hello @brockry1
You can use the following DAX formula instead if you want to determine whether the Subject
column contains the "Training" string or not:
# of completed events_Trainings =
CALCULATE (
DISTINCTCOUNT ( 'Event & Task'[ID] ),
'Event & Task'[Status (Consolidated)] = "Completed",
CONTAINSSTRING ( 'Event & Task'[Subject], "Training" ) = TRUE
)
The CONTAINSSTRING()
function is case-insensitive. However, if you require a strictly case-sensitive check, use CONTAINSSTRINGEXACT()
instead.
You can learn more about these functions here:
I have created small dataset of only 10 rows verify the, and here is the screenshot of it
I am also attaching the sample Power BI file for your reference.
Best Regards,
Udit
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudo 👍
🚀 Let's Connect: LinkedIn || YouTube || Medium || GitHub
✨ Visit My Linktree: LinkTree
Proud to be a Super User
Hello @brockry1
You can use the following DAX formula instead if you want to determine whether the Subject
column contains the "Training" string or not:
# of completed events_Trainings =
CALCULATE (
DISTINCTCOUNT ( 'Event & Task'[ID] ),
'Event & Task'[Status (Consolidated)] = "Completed",
CONTAINSSTRING ( 'Event & Task'[Subject], "Training" ) = TRUE
)
The CONTAINSSTRING()
function is case-insensitive. However, if you require a strictly case-sensitive check, use CONTAINSSTRINGEXACT()
instead.
You can learn more about these functions here:
I have created small dataset of only 10 rows verify the, and here is the screenshot of it
I am also attaching the sample Power BI file for your reference.
Best Regards,
Udit
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudo 👍
🚀 Let's Connect: LinkedIn || YouTube || Medium || GitHub
✨ Visit My Linktree: LinkTree
Proud to be a Super User
User | Count |
---|---|
16 | |
8 | |
7 | |
6 | |
5 |
User | Count |
---|---|
25 | |
13 | |
12 | |
8 | |
8 |