Countif = > 500

pocquet

Board Regular
Joined
Aug 21, 2013
Messages
118
Hello,

I am struggling to get a countif style formula working in power bi.

Basically, I have a list of around 400k rows and want to pull out as a count only rows that value is less than or equal to 500

Thanks

Jon
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
The query below creates a table with 1 column with 400,000 rows of random numbers between 475 and 525 and counts the umber of row >= 500:
Code:
let
    Source = Table.TransformColumns(Table.FromList(List.Random(400000),each {_},type table[Value = number]),{"Value", each Number.Round(475+50*_,0), Int64.Type}),
    CountGE500 = Table.RowCount(Table.SelectRows(Source, each [Value] >= 500))
in
    CountGE500
 
Upvote 0

Forum statistics

Threads
1,214,984
Messages
6,122,601
Members
449,089
Latest member
Motoracer88

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top