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
Anonymous
Not applicable

Return the values to a measure based on threshold breach

Hi,

 

I'm trying to create a measure to collect a list of customers, that are nearing a particular threshold

Table Name: abc

 

Enterprisetotal_contactsContact limit
abc2050
eee85100
fff100100
ccc110100

 

i should get the list of Enterprise for which the total_contacts is greater than 90% threshold of the Contact limit but less than 100%

 

In the above table, i should get comma separated values to be displayed as a card as follows:

eee

1 ACCEPTED SOLUTION
ribisht17
Super User
Super User

Hello Deedeedudu,

 

So for this data source 

ribisht17_0-1649001377371.png

Are you looking for such output?

 

ribisht17_1-1649001431105.png

 

If yes then these are the steps

 

1. BlankRows = COUNTBLANK(Threshold[Threshold])

2. CountRows = CALCULATE( COUNT( Threshold[Threshold]), ALL(Threshold), ( Threshold[Placeholder]>0))

3.Placeholder = ( ( LEN(Threshold[ThresholdCheck])))

4.CharsAllCount = CALCULATE(SUMX(Threshold,Threshold[Placeholder]),ALL())

5.ThresholdCheck = IF( DIVIDE(Threshold[total_contacts],Threshold[Contact limit]) >=.8 && DIVIDE(Threshold[total_contacts],Threshold[Contact limit]) < 1,Threshold[Enterprise],"")

6.SolutionCard = MID( CONCATENATEX(Threshold,Threshold[ThresholdCheck],","),Threshold[BlankRows]+1,[CharsAllCount]+Threshold[CountRows])

 

ribisht17_2-1649002907064.png

 

Regards,

Ritesh | Ritesh is Dancing with Data - YouTube 

Please mark the answer if it helps so that it can help others as well

 

 

 

 

 

View solution in original post

5 REPLIES 5
Ashish_Mathur
Super User
Super User

Hi,

Why should the answer be eee.  90% of 100 is 90 and 85 is less than 90.  Based on that data that you have shared, no Enterprise should be returned.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
ribisht17
Super User
Super User

Did the provided solution help you? If yes, please mark it accordingly

 

Regards,

Ritesh

ribisht17
Super User
Super User

Hello Deedeedudu,

 

So for this data source 

ribisht17_0-1649001377371.png

Are you looking for such output?

 

ribisht17_1-1649001431105.png

 

If yes then these are the steps

 

1. BlankRows = COUNTBLANK(Threshold[Threshold])

2. CountRows = CALCULATE( COUNT( Threshold[Threshold]), ALL(Threshold), ( Threshold[Placeholder]>0))

3.Placeholder = ( ( LEN(Threshold[ThresholdCheck])))

4.CharsAllCount = CALCULATE(SUMX(Threshold,Threshold[Placeholder]),ALL())

5.ThresholdCheck = IF( DIVIDE(Threshold[total_contacts],Threshold[Contact limit]) >=.8 && DIVIDE(Threshold[total_contacts],Threshold[Contact limit]) < 1,Threshold[Enterprise],"")

6.SolutionCard = MID( CONCATENATEX(Threshold,Threshold[ThresholdCheck],","),Threshold[BlankRows]+1,[CharsAllCount]+Threshold[CountRows])

 

ribisht17_2-1649002907064.png

 

Regards,

Ritesh | Ritesh is Dancing with Data - YouTube 

Please mark the answer if it helps so that it can help others as well

 

 

 

 

 

ribisht17
Super User
Super User

Hello,

 

eee is 85% of the Threshold limit(100) ?

Did not get your last point?Please clarify

 

Regards,

Ritesh

Anonymous
Not applicable

Sorry threshold to be set at 80% and not 90%.

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