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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
TcT85
Helper III
Helper III

If the value from first column is missing in the second column the show value from column 1

Hi,

Is this possible?

If the value from first column is missing in the second column the show value from column 1.

I have 2 tables

 

Table 1 Serial number
11
12
13
14
15
16
17

 

Table 2 Serial number
11
12
14
15
16

 

Result that I want.

New Column
13
17
 
 
1 ACCEPTED SOLUTION
Daniel29195
Super User
Super User

@TcT85 

sample data : 

Daniel29195_2-1707486474374.png

Daniel29195_3-1707486482806.png

 

output 

Daniel29195_0-1707486345954.png

 

measure

Measure 13 = 
var ds = 
EXCEPT(
    values(tbl_1[col1]),values(tbl_2[col2])
)
return
CALCULATE(
    COUNTROWS(tbl_1),
    KEEPFILTERS(ds)
    )

 

 

if you dont want to use a measure . you can simply refer to the below  method : 

output

Daniel29195_1-1707486429208.png

 

Measure 13 = 
var ds = 
EXCEPT(
    values(tbl_1[col1]),values(tbl_2[col2])
)
var c = 
CALCULATE(
    COUNTROWS(tbl_1),
    KEEPFILTERS(ds)
    )


return if(ISBLANK(c), 0,1)

 

 

 

 

let me know if it works for you . 

 

 

 

If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🤠

 

View solution in original post

2 REPLIES 2
Daniel29195
Super User
Super User

@TcT85 

sample data : 

Daniel29195_2-1707486474374.png

Daniel29195_3-1707486482806.png

 

output 

Daniel29195_0-1707486345954.png

 

measure

Measure 13 = 
var ds = 
EXCEPT(
    values(tbl_1[col1]),values(tbl_2[col2])
)
return
CALCULATE(
    COUNTROWS(tbl_1),
    KEEPFILTERS(ds)
    )

 

 

if you dont want to use a measure . you can simply refer to the below  method : 

output

Daniel29195_1-1707486429208.png

 

Measure 13 = 
var ds = 
EXCEPT(
    values(tbl_1[col1]),values(tbl_2[col2])
)
var c = 
CALCULATE(
    COUNTROWS(tbl_1),
    KEEPFILTERS(ds)
    )


return if(ISBLANK(c), 0,1)

 

 

 

 

let me know if it works for you . 

 

 

 

If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🤠

 

Ritaf1983
Super User
Super User

Hi @TcT85 
You can achieve the goal with EXCEPT function .
Please refer to the linked discussion:
https://community.fabric.microsoft.com/t5/Desktop/List-rows-that-are-missing-in-another-table/m-p/27...

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

Top Solution Authors
Top Kudoed Authors