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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Broly
Frequent Visitor

Get value from another row in filtered table

Hi,

I have a table that looks like this :

Broly_0-1675967363271.png

I have applied a bunch of filters on it : status = "a" or "b", date1= between 1 jan 2023 to 31 jan 2023, date2 = 1 jan 2023

and know it looks like this : 

Broly_1-1675967418748.png

 

For each ref that I have in the filtered table, I want to know if that ref exist in "c" status in the unfiltered table. 

in this example it would look like this :

Broly_2-1675967910278.png

 

I tried to create a measure that counts the number of ref using calculate with "removefilter()" But I keep having duplicate.

 

How can I write a measure that keeps the filtered table as and tells if the ref exist in the whole unfiltered table ?

 

Would really appreciate your help thanks

1 REPLY 1
JirkaZ
Solution Specialist
Solution Specialist

IMHO it could look something like this:

MyMeasure := 
   VAR _CurrentRef = SELECTEDVALUE('MyTable'[ref])
   VAR _Exists = COUNTROWS(FILTER(ALL('MyTable'), 'MyTable'[ref] = _CurrentRef))
RETURN
   IF(_Exists > 0, "Yes", "No")




Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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