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

Error caused by nonexistent column

I have these measures in the mbammsreportshare table:

  1. Quarterly Shares = COUNTROWS('mbammsreportshare')
  2. Meets Quarterly Share Goal = calculate(IF( [Quarterly Shares] >1,1,0))
  3. Count of Acct Mgrs = var numshares =
    CALCULATE( 
    DISTINCTCOUNT(mbammsreportshare[acct_mgr_name]), filter(mbammsreportshare,[Meets Quarterly Share Goal] =1 )
    ) RETURN numshares

The third measure gets this error:

The query referenced calculated column 'mbammsreportshare'[access_count_num] which does not hold any data because there is an error in its expression.

 

If I remove the filter from the last measure it doesn't have the error.

 

There is no access_count_num column in the mbammsreportshare table or any other table.  There is a column called access_count in mbammsreportshare.  It is not used by any of the measures.

 

What could be the cause of this?

 

Thanks for your help.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @gspollock ,

Please try below dax formula:

 

Count of Acct Mgrs =
VAR numshares =
    CALCULATE (
        DISTINCTCOUNT ( mbammsreportshare[acct_mgr_name] ),
        FILTER ( ALL ( mbammsreportshare ), [Meets Quarterly Share Goal] = 1 )
    )
RETURN
    numshares

 

 

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 @gspollock ,

Please try below dax formula:

 

Count of Acct Mgrs =
VAR numshares =
    CALCULATE (
        DISTINCTCOUNT ( mbammsreportshare[acct_mgr_name] ),
        FILTER ( ALL ( mbammsreportshare ), [Meets Quarterly Share Goal] = 1 )
    )
RETURN
    numshares

 

 

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

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.