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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
Anonymous
Not applicable

Filter a column using another column values

Hi everyone,

i need to filter Column A based on Column B value, for example

Postigo_0-1601476454174.png

i need to hide every ID VALUE that appears in  Reversal ID, what i expect is something like this result (the lines that appears the reversal id not blank i will hide by the SKU, thats ok)

Postigo_1-1601476508924.png
my data

Thanks

 

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

hi  @Anonymous 

Just use this measure to get it:

Measure = 
VAR _REVERSALID=CALCULATETABLE(VALUES(Planilha1[REVERSAL ID]),ALLSELECTED(Planilha1))
RETURN
CALCULATE(SUM(Planilha1[SKU]),FILTER(Planilha1,NOT(Planilha1[ID VALUE]) IN _REVERSALID && Planilha1[SKU]>0))

Result:

2.JPG Regards,

Lin

Community Support Team _ Lin
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

3 REPLIES 3
v-lili6-msft
Community Support
Community Support

hi  @Anonymous 

Just use this measure to get it:

Measure = 
VAR _REVERSALID=CALCULATETABLE(VALUES(Planilha1[REVERSAL ID]),ALLSELECTED(Planilha1))
RETURN
CALCULATE(SUM(Planilha1[SKU]),FILTER(Planilha1,NOT(Planilha1[ID VALUE]) IN _REVERSALID && Planilha1[SKU]>0))

Result:

2.JPG Regards,

Lin

Community Support Team _ Lin
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 , Add a measure like this in the visual table and try

 

calculate(coutrows(Table), Filter(Table, not(table[ID] in values(Table[Reversal 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
Anonymous
Not applicable

@amitchandak Thanks for your reply, unfortunately this measure didnt work

Postigo_0-1601487244399.png

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.