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! Request now

Reply
ManjunathaEP
Helper II
Helper II

Count rows within the calculated measure

Hi, Thank you for your support on this.

I have a typical requirement to find the orders count for the calculated measure. please find the sample data and calculated measure as given below:

order NoCust NameY/N?Revenue classAmount
111ABCYApple100
112XYZNApple22
113ABCNApple300
114XYZYOrange66
115DFGNApple667
116DDFYOrange567
112XYZNMango345
111ABCYMango349
117ABCNOrange147

 

I have calculated a measure = calculate(DISTINCTCOUNT('Table'[order No]),FILTER(VALUES('Table'[Cust.Name]),CALCULATE(DISTINCTCOUNT('Table'[Y/N?])>1))) and I got the answer "5" orders.
(Ord No= 111,112,113,114 and 117)
Now: I would like to get the count of orders by Rev.Class. In the given example: The answer should be Apple=3, Mango=1 and Orange=2.
My requirement here is to calculate the count of orders by Rev.class, which is equal to the calculated measure above.  
 
0 REPLIES 0

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.