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

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

Reply
Basanth
Regular Visitor

Create a measure which can be used for filtering a column based on another measure getting updated

Hi,

 

Wanted to create a measure which can be used in PowerBI Slicer when ActiveProduct (one measure from another table) is equal to Product column value.

 

 

ActiveProductMeasure = 
    IF (
        'MyTable'[Product] = [ActiveProduct],
        1,
        0
    )

 

But getting an error in measure DAX editor "A single value for column 'Product' in table 'MyTable' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result."

 

 

1 ACCEPTED SOLUTION
lukiz84
Memorable Member
Memorable Member

Try 

SELECTEDVALUE(MyTable[Product])

View solution in original post

2 REPLIES 2
Basanth
Regular Visitor

I could connect slicer value to visual two ways,

1. Using a Measure created as above and used as filter 'is' '1'

 

ActiveProductMeasure = 
    IF (
        SELECTEDVALUE('MyTable'[Product]) = [ActiveProduct],
        1,
        0
    )

 

 

2. Created relationship between Products[Name] and MyTable[Product] - after this I could see any slicer added for filtering filters both the visuals. Inn case you have slicer in a different page you can also use 'Slicer Sync' https://learn.microsoft.com/en-us/power-bi/developer/visuals/enable-sync-slicers

lukiz84
Memorable Member
Memorable Member

Try 

SELECTEDVALUE(MyTable[Product])

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.