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
deeave
Helper I
Helper I

DAX Measure Error

Receiving error "A single value for column 'modified' in table 'Projects UA2' 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."
 
Confirmed it is a date field and the field exists.
 
Project Active, No Achievement Updates in 30 Days = CALCULATE (
    COUNTROWS ( 'Projects Data2' ),
    FILTER (
        'Projects Data2',
        'Projects UA2' [modified] < TODAY() - 30
            && ISBLANK ( 'Projects PA2'[AchievementDate] )
    ),
    'Projects Data2'[projectstatus] = "Active",
    NOT ISBLANK ( 'Projects Data2'[projectnumber] )
)
1 ACCEPTED SOLUTION

As its a one-to-many you would need to use RELATEDTABLE, e.g.

Project Active, No Achievement Updates in 30 Days =
CALCULATE (
    COUNTROWS ( 'Projects Data2' ),
    FILTER (
        'Projects Data2',
        VAR MaxModifiedDate =
            MAXX ( RELATEDTABLE ( 'Projects UA2' ), 'Projects UA2'[modified] )
        RETURN
            MaxModifiedDate
                < TODAY () - 30
                && ISBLANK ( RELATED ( 'Projects PA2'[AchievementDate] ) )
                && 'Projects Data2'[projectstatus] = "Active"
                && NOT ISBLANK ( 'Projects Data2'[projectnumber] )
    )
)

View solution in original post

5 REPLIES 5
deeave
Helper I
Helper I

Thank you! 

 

It comes back with " The column 'Projects UA2[modified]' either doesn't exist or doesn't have a relationship to any table available in the current context." 

 

When I type in the name, it is not showing me all the tables in the workspace, only one that is an excel upload.  

What is the relationship between 'Projects UA2' and 'Projects Data2' ?

The relationships between Projects UA2 and Projects Data2 is below:

  • Projects Data2 to Projects UA2 (ProjectID One to Many)

As its a one-to-many you would need to use RELATEDTABLE, e.g.

Project Active, No Achievement Updates in 30 Days =
CALCULATE (
    COUNTROWS ( 'Projects Data2' ),
    FILTER (
        'Projects Data2',
        VAR MaxModifiedDate =
            MAXX ( RELATEDTABLE ( 'Projects UA2' ), 'Projects UA2'[modified] )
        RETURN
            MaxModifiedDate
                < TODAY () - 30
                && ISBLANK ( RELATED ( 'Projects PA2'[AchievementDate] ) )
                && 'Projects Data2'[projectstatus] = "Active"
                && NOT ISBLANK ( 'Projects Data2'[projectnumber] )
    )
)
johnt75
Super User
Super User

Because you're trying to access columns from a different table you need to use the RELATED function. Also, you can combine all the filter conditions into one,

Project Active, No Achievement Updates in 30 Days =
CALCULATE (
    COUNTROWS ( 'Projects Data2' ),
    FILTER (
        'Projects Data2',
        RELATED ( 'Projects UA2'[modified] )
            < TODAY () - 30
            && ISBLANK ( RELATED ( 'Projects PA2'[AchievementDate] ) )
            && 'Projects Data2'[projectstatus] = "Active"
            && NOT ISBLANK ( 'Projects Data2'[projectnumber] )
    )
)

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.