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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
jd-tb
Frequent Visitor

Count from results in a measure

I have a calculated table, part of it shown here. I have a slicer filtering by date

 

Affiliate LocationReceived to Completed Score %Received to Completed Rank Level
Toronto1001
Montreal1001
Boston882
Vancouver793
Los Angeles554
New York404

 

ReceivedToCompletedScore % = [ReceivedToCompletedFilter]/[JobCompleteFilter]


ReceivedToCompletedRankLevel = IF ([ReceivedToCompletedPercentFilter]=1,1,IF([ReceivedToCompletedPercentFilter]>=0.86,2,IF([ReceivedToCompletedPercentFilter]>=0.76,3,IF([ReceivedToCompletedPercentFilter]>=0,4,"n/a"))))

I have 68 total affiliates with their scores
I have managed to rank them with a rank level of 1 to 4 based on the rank level Criteria shown here

 

Rank Level Criteria
Rank level 1 is 100%
Rank level 2 is 86 to 99%
Rank level 3 is 75 to 85%
Rank level 3 < 75%

 

The result I need is to show the percentage of affiliates by ranklevel

 

Example
Rank level 1 is a%
Rank level 2 is x%
Rank level 3 is y%
Rank level 4 is z%

 

Any help would be greatly appreciated.

Jd

1 ACCEPTED SOLUTION
jd-tb
Frequent Visitor

I Managed to figure this out with this formula.

 

TrueCount1 =

VAR vTable =
ADDCOLUMNS(
    'Location Scores',
    "rate1", [RateRank]
)

RETURN
COUNTROWS(
    FILTER(
        vTable,
        [rate1] = 1
    )
)

View solution in original post

5 REPLIES 5
Portrek
Resolver III
Resolver III

Hi, try the measure below.

measure = DIVIDE(
COUNT(Table[Received to Completed Rank Level]),
CALCULATE(
COUNT(Table[Received to Completed Rank Level]),
ALL(table) ),
0)

choose the % format.

Best regards.

jd-tb
Frequent Visitor

Hi Portrek,

 

Thank you for the help.

I have tried this formula you provided and it returns a 1 or 100%

 

i think my problem is that the column I have for Recieved to Completed rank Level is created from the following measure 

ReceivedToCompletedRankLevel = IF ([ReceivedToCompletedPercentFilter]=1,1,IF([ReceivedToCompletedPercentFilter]>=0.86,2,IF([ReceivedToCompletedPercentFilter]>=0.76,3,IF([ReceivedToCompletedPercentFilter]>=0,4,"n/a"))))

 

and it is a true false Column? I am not sure.

 

I have also tried these and they did not work either.

ReceivedToCompleted_GroupLevels1 = CALCULATE(IF([ReceivedToCompletedRankLevel]=1,1,0))
and
ReceivedToCompleted_GroupLevel1Count = sumx('Date',[ReceivedToCompleted_GroupLevels1])
 
Thank you for your help.
Jd

 

 

Hi,

I'd like to help.  Please describe the question, share the raw data (not a calculated table) and show the expected result.


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

Hi Ashish,

 

I have created a scaled down version of my file.

https://www.dropbox.com/s/mz5fpdvirwrr88o/RankRate.pbix?dl=0

 

I need to create a formula that gives me the result
Locations with a score of 4 30.00%
Locations with a score of 3 20.00%
Locations with a score of 2 40.00%
Locations with a score of 1 10.00%

 

Thanks for helping.

Jd

jd-tb
Frequent Visitor

I Managed to figure this out with this formula.

 

TrueCount1 =

VAR vTable =
ADDCOLUMNS(
    'Location Scores',
    "rate1", [RateRank]
)

RETURN
COUNTROWS(
    FILTER(
        vTable,
        [rate1] = 1
    )
)

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.