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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
DeepDive
Helper IV
Helper IV

Unable to Count of calculation made using measure ?

Hi Experts,

I have two columns available with me i.e. Name and Sales. Now I have calculated Rank_sales and Rank_bucket using Measures.
Now my requirement how to calculated count of Rank_Buckets against respective buckets (using measure only)

PS:
Rank_Sales = Rank of Sales
Rank_Bucket = put ranks in bucket as per requirement


Pls also help with any blog or tutorial on how we can use measures further in other calculations

 

NameSalesRank_SalesRank_BucketCount o fRank_Bucket - Respective To Bucket
X324114
Z200214
Y123314
W100414
V90526
J63626
I62726
L56826
R56826
G551026
S4511310
U4212310
D3413310
K3413310
Q3413310
E3316310
H3316310
F2318310
O2318310
T2318310
N122146
P122146
M92346
C62446
A52546
B32646
1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

Hello @DeepDive 

Give this a try.

Count of Rank Bucket = 
VAR _bucket = [Rank_Bucket]
RETURN
COUNTROWS (
    FILTER ( ALL( YourTable[Name] ) , [Rank_Bucket] = _bucket ) )

RankBucket.jpg

View solution in original post

2 REPLIES 2
jdbuchanan71
Super User
Super User

Hello @DeepDive 

Give this a try.

Count of Rank Bucket = 
VAR _bucket = [Rank_Bucket]
RETURN
COUNTROWS (
    FILTER ( ALL( YourTable[Name] ) , [Rank_Bucket] = _bucket ) )

RankBucket.jpg

@jdbuchanan71 Thank you.. Working fine

 

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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