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 mesaure / Need help

Hello, everyone,
I am creating a DAX measure to calculate a distinct count using (Distinctcount) the number for which the "START" intervention exists and for which at least one "END" intervention exists. You can see the columns below: The columns are from the same table called Table 1. according to this figure, there are a lot of data. 

 

Capture.PNG

My best regards. Thank you.

2 REPLIES 2
sjoerdvn
Super User
Super User

try something like

Example measure = COUNTROWS(INTERSECT(
	CALCULATETABLE(VALUES('Table 1'[Column 1]), 'Table 1'[Column 2]='Start')
	,CALCULATETABLE(VALUES('Table 1'[Column 1]), 'Table 1'[Column 2]='End')
))
Anonymous
Not applicable

Hi

I made a solution, you see if my understanding is wrong. What I understand is to find the number of distinct values of column 1 that are common to start and end.

Below is my table:

vxiandatmsft_0-1698914102561.png

I create a new table to find End and Start common row.

The following DAX might work for you:

Measure = 
    CALCULATE(
        DISTINCTCOUNT('Table'[Column1]),
        EXCEPT('Table','Table (2)')
    )

The final output is shown in the following figure:

vxiandatmsft_1-1698914195220.png

Please feel free to let me know if I understand the wrong requirements.

Best Regards,

Xianda Tang

If this post helps , then please consider Accept it as the solution to help 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.