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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
TehKonnos
Frequent Visitor

Blank columns in Dynamic Column Selection

Hello!
I have created a Dynamic Column Selection to use in a slicer (The slicer uses a dropdown with single select). When the user selects an option, I count all the results splitter by the values of that option. 

I want to exclude blank values, for all that options, but when I try to do that via the visual, the results affect all other options from that slicer.

 

In the example below, follow these steps to reproduce:
1. Check how many rows exists on the right diagram, when the filter is Shirt Number

2. Change to Coffee Preference and try to exclude Blanks from the visual on the right

3. Return slicer to Shirt Number and check how the data are affected. 

The issue is that when you exclude Blanks from the Coffee Preference, you miss the truth about other categories, in our case, Shirt Number, where the value "Large" does not exist.

 

Link to file: https://drive.google.com/file/d/1xevTPkEJiUiVj5z87P8CJBki5PFFoIcw/view?usp=drive_link

Thank you in advance!

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @TehKonnos ,

Please try below steps:

1. create a new table with below dax formula

 

Table =
VAR tmp1 =
    SELECTCOLUMNS (
        'Raw Data',
        "Name", [Name],
        "Property", "Coffee Preference",
        "Value", [Coffee Preference]
    )
VAR tmp2 =
    SELECTCOLUMNS (
        'Raw Data',
        "Name", [Name],
        "Property", "Occupied",
        "Value", [Occupied]
    )
VAR tmp3 =
    SELECTCOLUMNS (
        'Raw Data',
        "Name", [Name],
        "Property", "Shirt Number",
        "Value", [Shirt Number]
    )
VAR tmp4 =
    UNION ( tmp1, tmp2, tmp3 )
VAR tmp5 =
    FILTER ( tmp4, [Value] <> BLANK () )
RETURN
    tmp5

 

vbinbinyumsft_1-1705044376622.png

 

2. create a measure with below dax formula

 

Measure = COUNT('Table'[Value])

 

 

3. visualize the data

Animation01.gif

 

Please refer the attached .pbix file.

 

Best regards,
Community Support Team_Binbin Yu
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
Anonymous
Not applicable

Hi @TehKonnos ,

Please try below steps:

1. create a new table with below dax formula

 

Table =
VAR tmp1 =
    SELECTCOLUMNS (
        'Raw Data',
        "Name", [Name],
        "Property", "Coffee Preference",
        "Value", [Coffee Preference]
    )
VAR tmp2 =
    SELECTCOLUMNS (
        'Raw Data',
        "Name", [Name],
        "Property", "Occupied",
        "Value", [Occupied]
    )
VAR tmp3 =
    SELECTCOLUMNS (
        'Raw Data',
        "Name", [Name],
        "Property", "Shirt Number",
        "Value", [Shirt Number]
    )
VAR tmp4 =
    UNION ( tmp1, tmp2, tmp3 )
VAR tmp5 =
    FILTER ( tmp4, [Value] <> BLANK () )
RETURN
    tmp5

 

vbinbinyumsft_1-1705044376622.png

 

2. create a measure with below dax formula

 

Measure = COUNT('Table'[Value])

 

 

3. visualize the data

Animation01.gif

 

Please refer the attached .pbix file.

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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