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
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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors