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
arvindarvind24
Helper II
Helper II

IF(CountIFS Greater than + other criteria)

Please see below my excel formula which is returning the right result 

Excel Formula =+COUNTIFS(B:B,B2,A:A,A2,C:C,">"&C2)+1

 

Sample data and output

P08.Style No.RegionRank1Inward Rank
ABCD03700IBIHAR2331
ABCD03700IBIHAR2292
ABCD06299BLR, MYS & TMKR11013
ABCD06299BLR, MYS & TMKR2735
ABCD06299BLR, MYS & TMKR9518
ABCD06299BLR, MYS & TMKR1307
ABCD06299BLR, MYS & TMKR9220
ABCD06299BLR, MYS & TMKR5927
ABCD06299BLR, MYS & TMKR1335
ABCD06299BLR, MYS & TMKR4630
ABCD06299BLR, MYS & TMKR7523
ABCD06299BLR, MYS & TMKR1902
ABCD06299BLR, MYS & TMKR1353
ABCD06299BLR, MYS & TMKR11112
ABCD06299BLR, MYS & TMKR2436

@Greg_Deckler @Ashish_Mathur 

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

This calculated column formula works

= CALCULATE(countrows(data),FILTER(Data,Data[P08.Style No.]=EARLIER(Data[P08.Style No.])&&Data[Region]=EARLIER(Data[Region])&&Data[Rank1]>=EARLIER(Data[Rank1])))

Hope this helps.

Untitled.png


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

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

This calculated column formula works

= CALCULATE(countrows(data),FILTER(Data,Data[P08.Style No.]=EARLIER(Data[P08.Style No.])&&Data[Region]=EARLIER(Data[Region])&&Data[Rank1]>=EARLIER(Data[Rank1])))

Hope this helps.

Untitled.png


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

@arvindarvind24 , if this based on Rank1

 

then a new column

Rankx(Table, [Rank1],,desc,dense)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thank you for your reply @amitchandak ,

But still, I did not get it right.

 

RANK.png

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.