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
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
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.