• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Count of Items divided into two categories on the basis of a fixed number

Hi All. I need a DAX in Power BI.
There is a table with only 1 column in it namely "Items". There are random numbers in the "Items" column like 2, 4, 5, 7, 12, 15 and 23.

And there is a fixed number say 6 is a hard value. So I need a DAX which will divide the Items Columns into two categories.
Category 1 - All those rows which are below fixed number 6 should come under this category and should give an output as "Count of Items" which are below 6.
Category 2 - All those rows which are above fixed number 6 should come under this category and should give an output as "Count of Items" which are above 6.

So the output should show-
Category 1 - 3 (As 2, 4 and 5 are below the fixed number 6)
Category 2 - 4 (As 7, 12, 15 and 23 are above the fixed number 6)

Please guide. Thanks in advance.
 
Back
Top