Amit Punia
Member
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.
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.