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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Dax measure / need help with a measure

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. 

 
56.PNG

Thank you, My best regards. 

2 REPLIES 2
BeaBF
Super User
Super User

@Anonymous Hi! Try with:

InterventionsWithoutA61A62 =
CALCULATE(
DISTINCTCOUNT('Table'[Column1]),
NOT('Table'[Column2] IN {"A61", "A62"})
)

BBF

Anonymous
Not applicable

Hi

Below is my table:

vxiandatmsft_0-1698993617160.png

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:

vxiandatmsft_1-1698993672504.png

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.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.