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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Display values on the visual from Table A which is not present on Table B

Hello All,

 

I am requesting an idea to acheive the below scenario. Please let me know if you can help.

 

I have a table in my report with the  structure like below.

 

Table A:

 

unnipbi123_0-1646284044302.png

 

I have created a matrix visual out of this table with the below condition

 

count of resellers under each dist whose user_last month is not 0 but the user_current month is 0(Basically to understand the churn)

Now i have a request that few resellers needs to be exceptioned from the report for particular month as they will be on a special request for specific months. i have created an exception report like below which i can import to power bi

 

Table B: 

 

unnipbi123_1-1646284531763.png

 

Now my visual should not consider the resellers who are present in this exception table for the specified date. the problem here is i cannot make any changes to my Table A as there are many other reports created out of the Table A. What I am thinking is i can create a relationship between table A and Table B and use the reseller ID of Table B in filters to exclude it. but the reseller id should be excluded only for the specific date mentioned on table B. 

 

Please anyone help me how to acheive this.

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @Anonymous ,

Here are the steps you can follow:

1. Create measure.

Flag =
var _date=SELECTCOLUMNS('TableB',"Date",'TableB'[Date])
var _ResellerID=SELECTCOLUMNS('TableB',"Reseller",'TableB'[Reseller ID])
return
IF(
    MAX('TableA'[Date]) in _date &&MAX('TableA'[Reseller ID]) in _ResellerID ,0,1)

2. Place [Flag]in Filters, set is=1, apply filter.

vyangliumsft_2-1646618814740.png

3. Result:

vyangliumsft_3-1646618814742.png

 

Best Regards,

Liu Yang

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

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi  @Anonymous ,

Here are the steps you can follow:

1. Create measure.

Flag =
var _date=SELECTCOLUMNS('TableB',"Date",'TableB'[Date])
var _ResellerID=SELECTCOLUMNS('TableB',"Reseller",'TableB'[Reseller ID])
return
IF(
    MAX('TableA'[Date]) in _date &&MAX('TableA'[Reseller ID]) in _ResellerID ,0,1)

2. Place [Flag]in Filters, set is=1, apply filter.

vyangliumsft_2-1646618814740.png

3. Result:

vyangliumsft_3-1646618814742.png

 

Best Regards,

Liu Yang

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

amitchandak
Super User
Super User

@Anonymous , Assume you have measure from table A and table B

 

A = countrows(A)

 

B = countrows(B)

 

Assume retailed and date etc are common and filtering

 

In B not in A

 

Countx(Values(reseller[reseller ID]), if(not(isblank([B])) && isblank([A]) , [reseller ID], blank()) )

 

Use with reseller id

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors