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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Measure to summarize MIN

Hi community, Would be great if anybody can help me with my problem. I'm trying to create a visual based on the table 'Prognoselement':

 

Table.jpg

In a matrix visual I want to have the MIN values from the column Adjust per OwnerId and PeriodId. It should look like this:

 

Visual.jpg

With this measare I don't get the MIN, but the sums per period and owner:

 

Commit FC Adj new =
MINX(
            KEEPFILTERS(VALUES(Prognoseelement[PeriodId]));
            CALCULATE(SUM(Prognoseelement[Adjustment]))
)

 

Has anybody an idea how to correct this wrong measure?

Thanks in advance!!!

 

Regards,

Harald

 

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

We can remove the OwnerId from the column filed and change to use the following measure.

 

Commit FC Adj new =
SUMX (
    ADDCOLUMNS (
        DISTINCT ( 'Prognoselement'[OwnerId] ),
        "min", CALCULATE ( MINX ( 'Prognoselement', [Adjustment] ) )
    ),
    [min]
)

9.PNG10.PNG

 

BTW, pbix as attached.

 

Best regards,

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

Community Support Team _ Dong Li
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

6 REPLIES 6
Anonymous
Not applicable

that's a overcomplicated MINX

Commit FC Adj new =
MINX(
            Prognoseelement;Prognoseelement[Adjustment]
)

 

your filter groups by OwnerID and Period will filter your rows and MINX will extract the minimum value in that subset

Anonymous
Not applicable

Hi,

Thank you for your quick response. This works exactly for my description.

 

But would it be possible to change your measure to have the OwnerIds in a slicer and select multiple owners and then get the totals for the minimums of each of them. For a single selection it works, but not for multiple. In the visual there are only PeriodId as rows and Adjust as value. Sorry for not describing this in my 1st post.

 

Best Regards,

Harald

Anonymous
Not applicable

So you want, filtered by A or B the SUM of the MINIMUM value of each PeriodId?

So A would be 500.000 and
B would be 450.000 (for M1) + 750.000 (for M2)?

Otherwise can you explain your expected result?

Anonymous
Not applicable

A and B can be selected in a slicer. And these should be the results:

Visual2.jpg

Hi @Anonymous ,

 

We can remove the OwnerId from the column filed and change to use the following measure.

 

Commit FC Adj new =
SUMX (
    ADDCOLUMNS (
        DISTINCT ( 'Prognoselement'[OwnerId] ),
        "min", CALCULATE ( MINX ( 'Prognoselement', [Adjustment] ) )
    ),
    [min]
)

9.PNG10.PNG

 

BTW, pbix as attached.

 

Best regards,

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

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

Hi @v-lid-msft ,

 

Thanks a lot for your solution. Works perfectly for me.

 

Best Regards,

Harald

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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