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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
sabeensp
Helper IV
Helper IV

Compare results and provide the differnce

Hello,

 

I have a resulte set in two grids, I need to find what is in 1 grid and not in another. Below is the image what I'm trying to do, also you can download pbix form here:

https://1drv.ms/u/s!AumyvtVXEve9jL1EXA9FFVtboSCclw

 

1.png

 

 

1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi @sabeensp

Copy Table1 to create Table2

create measure in Table1 and Table2

measure in Table1
Measure = LOOKUPVALUE ( Table2[Qty], Table2[Location], SELECTEDVALUE ( Table2[Location] ), Table2[Vehicle], MAX ( Table1[Vehicle] ), Table2[Type], MAX ( Table1[Type] ) ) Measure 2 = IF(ISBLANK([Measure]),1,0)
measure in Table2
Measure 3 =
LOOKUPVALUE (
    Table1[Qty],
    Table1[Location], SELECTEDVALUE ( Table1[Location] ),
    Table1[Vehicle], MAX ( Table2[Vehicle] ),
    Table1[Type], MAX ( Table2[Type] )
)

Measure 4 = IF(ISBLANK([Measure 3]),1,0)

Then add  Measure/Meausre3 in the Visual level filter of the table, select "show items when value is blank

8.png

See more details in my pbix 

 

Best Regards

Maggie

View solution in original post

6 REPLIES 6
v-juanli-msft
Community Support
Community Support

Hi @sabeensp

Copy Table1 to create Table2

create measure in Table1 and Table2

measure in Table1
Measure = LOOKUPVALUE ( Table2[Qty], Table2[Location], SELECTEDVALUE ( Table2[Location] ), Table2[Vehicle], MAX ( Table1[Vehicle] ), Table2[Type], MAX ( Table1[Type] ) ) Measure 2 = IF(ISBLANK([Measure]),1,0)
measure in Table2
Measure 3 =
LOOKUPVALUE (
    Table1[Qty],
    Table1[Location], SELECTEDVALUE ( Table1[Location] ),
    Table1[Vehicle], MAX ( Table2[Vehicle] ),
    Table1[Type], MAX ( Table2[Type] )
)

Measure 4 = IF(ISBLANK([Measure 3]),1,0)

Then add  Measure/Meausre3 in the Visual level filter of the table, select "show items when value is blank

8.png

See more details in my pbix 

 

Best Regards

Maggie

@  can you please share your pbix?

Hi @sabeensp

Update!

Sorry for inconvenience.

 

Best Regards

Maggie

Greg_Deckler
Super User
Super User

Perhaps my "Not In Common" Quick Measure will work? https://community.powerbi.com/t5/Quick-Measures-Gallery/Not-In-Common/m-p/388273

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

@

 So, my data is coming from the same table, and there is not relationship between othet tables.

@Greg_Decker So, my data is coming from the sam etale, and there is not relationship between othet tables.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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