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

Reply
Shahabh786
Frequent Visitor

SummarizeColumns() and AddMissingItems() may not be used in this context

Hi All,

 

I'm getting below error while using it in a measure.

 

Error: SummarizeColumns() and AddMissingItems() may not be used in this context

 

Measure: 

 

 

 

Highest Y-Axis = 
VAR _SummarizedTC1 =
    SUMMARIZECOLUMNS (
        'Calendar'[MonthYearName],
        'Products'[TherapyClass1],
        "@InvenotryDays", [Inventory Days]
    )
RETURN
MAXX ( _SummarizedTC1, [@InvenotryDays] )

 

 

 

 

Unfortunalty I can't use SUMMARIZE function because I need to calculate the inventory days against two column coming from two diffrent tables. 

Requesting you to kindly suggest any other way to achive the same result.

2 REPLIES 2
Shahabh786
Frequent Visitor

Hi @Anonymous 

Basically I'm using measure [Highest Y-Axis] in asssigning Y axis value to a chart.

Inventory Days formula is simple, it is using sum of a column which produces values like. 50, 30, 80.

Anonymous
Not applicable

Hi @Shahabh786 ,

 

I tried to reproduce it. Below is the error.

vstephenmsft_0-1696490622343.png

I wonder what the [Inventory Days] measure formula looks like.

If you have a relationship between Calendar table and Products table.

vstephenmsft_3-1696491059067.png

You just drag three fields into a table visual. The result will appear.

vstephenmsft_4-1696491174584.png

If I'm wrong, please provide some simple sample data and expected result also as table form. It's like this dummy data in my reply.

 

Best Regards,

Stephen Tao

 

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.

Top Solution Authors