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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
dura
Regular Visitor

Filter by two values

Dear Community, 

 

I have the following data:

dura_0-1682424112047.png

The values 1,2,3,4 in the column language are connected to languages. The NULL value has no language e.g is nummeric or just doesn't need translation and needs to be visible in all languages.  Therefore I need to filter the data by tuples e.g (NULL, 1), (NULL , 2), (NULL, 3), (NULL, 4). 

 

How can I do this? I would love a filter which would just look like this:

dura_0-1682320871377.png

 

 

Thanks. 

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

Hi , @dura 

According to your description, do you mean you want to use the [Languages] as a slicer to filter the table , like that when you select "2" , you will show “2” and "NULL".

If this , here are teh steps you can refer to :
(1)This is my test data :

vyueyunzhmsft_0-1682474613465.png

For your need , you do not need to create any relationship between two tables.

 

(2)Then we can create a measure :

Measure = var _slicer=  VALUES('Languages'[Languages])
var _cur_lan = MAX('Table'[Language])
return
IF(_cur_lan=BLANK() || _cur_lan in _slicer , 1 , 0)

 

(3)Then we can put the measure on the "Filter on thsi visual" and configure it like this :

vyueyunzhmsft_1-1682474858930.png

 

 

 

 

If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem. (You can also upload you sample .pbix [without sensitive data] to the OneDrive and share with the OneDrive link to me ! )

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

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

1 REPLY 1
v-yueyunzh-msft
Community Support
Community Support

Hi , @dura 

According to your description, do you mean you want to use the [Languages] as a slicer to filter the table , like that when you select "2" , you will show “2” and "NULL".

If this , here are teh steps you can refer to :
(1)This is my test data :

vyueyunzhmsft_0-1682474613465.png

For your need , you do not need to create any relationship between two tables.

 

(2)Then we can create a measure :

Measure = var _slicer=  VALUES('Languages'[Languages])
var _cur_lan = MAX('Table'[Language])
return
IF(_cur_lan=BLANK() || _cur_lan in _slicer , 1 , 0)

 

(3)Then we can put the measure on the "Filter on thsi visual" and configure it like this :

vyueyunzhmsft_1-1682474858930.png

 

 

 

 

If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem. (You can also upload you sample .pbix [without sensitive data] to the OneDrive and share with the OneDrive link to me ! )

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

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

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.