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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
SubhaSakhinala
Regular Visitor

Creating one report with two joined tables and other report with only one table

Data: I have two tables. Table A, Table B

 

I need to create 3 reports.

1. With only data in Table A

2. With only data in Table B

3. Data in Table A but not in Table B (for this we need to join tables)

 

Question

 

Here to obtain first 2 reports I need individual tables (which are not joined) and for 3rd report, I need to join tables.

In this case I need to keep 2 tables and other 2 duplicate tables to join them and use it

 

Is there a better solution, instead of duplicating the tables?

1 ACCEPTED SOLUTION
SubhaSakhinala
Regular Visitor

Table = var _new = EXCEPT(ALL(Table1[Name]),all(Table2[Name])) return filter(Table1, Table1[Name] in _new)
 
 
This worked.

View solution in original post

2 REPLIES 2
SubhaSakhinala
Regular Visitor

Table = var _new = EXCEPT(ALL(Table1[Name]),all(Table2[Name])) return filter(Table1, Table1[Name] in _new)
 
 
This worked.
amitchandak
Super User
Super User

@SubhaSakhinala , if both tables has the same number of columns and data type

a new table

C=  except(A,B)

 

Else create a column on the id column

 

C = distinct(except(distinct(Table[A]),distinct(Table[B])) )

 

then create measure like below or use below meausre as visual level filter and check for nonblank

 

countrows(filter(A, A[ID] in values(c[ID])))

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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