Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Shahabh786
Frequent Visitor

Help Needed: Finding Minimum Growth Value in Power BI

Hello,

I need assistance with finding the minimum growth value for each region, regardless of the month or year. I'm currently calculating the growth compared to the same period last year using the following measure:

 

% SPLY Growth = 
VAR _CurrentMonthUnit = [Sales Units]
VAR _SamePeriodLastYearUnits =
    CALCULATE ( [Sales Units], SAMEPERIODLASTYEAR ( 'Calendar'[Date] ) )
RETURN
    ( _CurrentMonthUnit - _SamePeriodLastYearUnits ) / _CurrentMonthUnit

 

 

In my matrix visual, I have 'Geography'[Region Name] on rows and 'Calendar'[Month Year] on columns, with '% SPLY Growth' as values. The 'Month Year' values are formatted like 'Mar-2024, Apr-2024, May-2024'.

I want to create another measure to find the minimum growth value for each region, regardless of the month or year. Here are the attempts I've made:

 
1. Using SUMMARIZECOLUMNS:

 

Min SPLY Growth = 
MINX(
    SUMMARIZECOLUMNS(
        'Geography'[Region Name],
        'Calendar'[Month Year],
        "@SPLY", [% SPLY Growth]
    ),
    [@SPLY]
)

 

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

2. Using SUMMARIZE:

 

Min SPLY Growth = 
MINX(
    SUMMARIZE(
        'Sales',
        'Geography'[Region Name],
        'Calendar'[Month Year],
        "@SPLY", [% SPLY Growth]
    ),
    [@SPLY]
)

 

Error: "Resources Exceeded. This visual has exceeded the available resources. Try filtering to decrease the amount of data displayed."

 

 

Could anyone suggest an alternative solution to find the minimum growth value for each region?

Thank you!

 

1 ACCEPTED SOLUTION
Shahabh786
Frequent Visitor

I was able to finally achive this using below workaround.

ADDCOLUMNS (
                FILTER (
                    SUMMARIZE ( 'Sales', 'Calendar'[MonthYear] ),
                    [MonthYear] <> _CurrentMonthYear
                ),
                "@SPLM", [Monthly Growth %]
            )

View solution in original post

3 REPLIES 3
Shahabh786
Frequent Visitor

I was able to finally achive this using below workaround.

ADDCOLUMNS (
                FILTER (
                    SUMMARIZE ( 'Sales', 'Calendar'[MonthYear] ),
                    [MonthYear] <> _CurrentMonthYear
                ),
                "@SPLM", [Monthly Growth %]
            )
v-yiruan-msft
Community Support
Community Support

Hi @Shahabh786 ,

Has your issue been resolved? If so, could you please mark your post as Answered? Additionally, sharing the solution here would be greatly appreciated, as it can help others in the community who might encounter a similar problem. Thank you for your contribution!

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-yiruan-msft
Community Support
Community Support

Hi @Shahabh786 ,

Please update the formula of measure [Min SPLY Growth] as below and check if it can return the expected result.

Min SPLY Growth = MINX ( ALL ( 'Calendar'[Month Year] ), [% SPLY Growth] )

 

If the above one can't help you figure out, please provide some raw data in your table (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It would be helpful to find out the solution. You can refer the following link to share the required info:

How to provide sample data in the Power BI Forum

 

And it is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.