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
Ritesh_Air
Post Patron
Post Patron

MAXX Threshold Value

Hi experts,

 

Update:  I updated the file. Reduced its size by 90%.

 

Wanted to see if I can find a particular value based on a condition.

I tried to use Minx function but have no clue how to move forward. Attached is the pbix.

Problem statement:

  1. I am looking for the threshold value when I reach 80% of the total sale. for e.g, the one highlighted in yellow then I want to show that in a card. I want to show $25,405 in a card.
  2. And the number at which it occurred, in this case, it was 193. Which mean there are 193 customers which are core customers.

Any help is appreciated.

 

 

Ritesh_Air_0-1598899435675.png

 

https://drive.google.com/file/d/1Rh8LUGseeidYTaud_T-GfoGsvpgb7zEx/view?usp=sharing

 

 

Thanks,

Ritesh

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

HI @Ritesh_Air,

You can try to use the following measure formulas to get the max sale and the row counts of a specific range based on the target.

Target=0.8

MAX Sales =
    CALCULATE (
        MAX ( 'Table'[Sales] ),
        FILTER ( ALLSELECTED ( 'Table' ), ROUNDDOWN ( [Rate], 2 ) = [Target])
    )

Row counts =
CALCULATE (
    COUNTROWS ( 'Table' ),
    FILTER ( ALLSELECTED ( 'Table' ), ROUNDDOWN ( [Rate], 2 ) = [Target] )
)

If above not helps, please share some dummy data to test. (your sample file seems expired so I can't access it)
Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

3 REPLIES 3
v-shex-msft
Community Support
Community Support

HI @Ritesh_Air,

You can try to use the following measure formulas to get the max sale and the row counts of a specific range based on the target.

Target=0.8

MAX Sales =
    CALCULATE (
        MAX ( 'Table'[Sales] ),
        FILTER ( ALLSELECTED ( 'Table' ), ROUNDDOWN ( [Rate], 2 ) = [Target])
    )

Row counts =
CALCULATE (
    COUNTROWS ( 'Table' ),
    FILTER ( ALLSELECTED ( 'Table' ), ROUNDDOWN ( [Rate], 2 ) = [Target] )
)

If above not helps, please share some dummy data to test. (your sample file seems expired so I can't access it)
Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Stachu
Community Champion
Community Champion

What determines the order in which the sum is acumulated? Alphabetical, date of transaction, value of the transaction, random?



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

@Stachu 

 

The sum is accumulated in desc order of sales amount. If you sold the most, you are at the top.

 

thanks,

Ritesh

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.