Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I am new with PowerBI
I would like to count the number of item_code and put it in a new colum.
so the new column will have
item_code 1 = 3
item_code x = 2
item_code y = 1
etc
How can i do that?
thanks
Solved! Go to Solution.
do you mean by year?
calculate(count(item),allexcept(table, year))
if you want distinct count ,try this
calculate(distinctcount(item),allexcept(table,year)
Proud to be a Super User!
I tried the following & it works for my need
CALCULATE(
COUNT(_TempTable[item_code]),
ALLEXCEPT(_TempTable,_TempTable[item_code])
)
thanks for the tip
do you mean by year?
calculate(count(item),allexcept(table, year))
if you want distinct count ,try this
calculate(distinctcount(item),allexcept(table,year)
Proud to be a Super User!
I tried the following & it works for my need
CALCULATE(
COUNT(_TempTable[item_code]),
ALLEXCEPT(_TempTable,_TempTable[item_code])
)
thanks for the tip
you are welcome
Proud to be a Super User!
User | Count |
---|---|
94 | |
86 | |
78 | |
69 | |
63 |
User | Count |
---|---|
113 | |
99 | |
97 | |
64 | |
59 |