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

Shape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.

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
November Carousel

Fabric Community Update - November 2024

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

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.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.