Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi everyone,
I would like to do this measure :
calculate the number of interventions using the distinctcount function for which there is neither the "A61" nor the "A62" intervention. Here is the table. Table name: Table.
Thank you, My best regards.
@Anonymous Hi! Try with:
InterventionsWithoutA61A62 =
CALCULATE(
DISTINCTCOUNT('Table'[Column1]),
NOT('Table'[Column2] IN {"A61", "A62"})
)
BBF
Hi
Below is my table:
The following DAX might work for you:
Measure 3 =
var tmp=CALCULATETABLE(VALUES('Table'[Column1]),'Table'[Column2]="A61"||'Table'[Column2]="A62")
var tmp1=CALCULATETABLE(VALUES('Table'[Column1]),NOT('Table'[Column1] in tmp))
return
COUNTROWS(tmp1)The final output is shown in the following figure:
Best Regards,
Xianda Tang
If this post helps ,then please consider Accept it as the solution to help the other members find it more quickly.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 6 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 16 | |
| 8 | |
| 7 | |
| 7 |