Forum Discussion
Re:Count issue
i have loan number column in table and client needs show table bellow in loan number count
when ever i give count for loan number its reflecting entire column like bellow ex:
loan number
12313
12313
12313
output:
loan number
1
1
1
like this coming so client does'nt accepting this
client need bellw like this:
loan number
12333
12323
12323
count: 3
so please help
16 Replies
- AnonymousNot applicable
if you want to display count in card use below dax
Measure=Count(table[laon number])
If you want it in table along with loan number then use below dax
measure=Calculate(count(table[Loan number]),all(table))
Thanks & regards,
Pravin Wattamwar
www.linkedin.com/in/pravin-p-wattamwar
If I resolve your problem Mark it as a solution and give kudos.- AnonymousNot applicable
Thank you for replay
if i use card bellow table u can get it but if u scroll left side and right side its always difficult right
he wants show
loan number
12133
12323
12323
count 3 like this
if i use coult entire table count that always unacceptable right
- AnonymousNot applicable
In power bi table visual ,
if you are using this loan number it will automatically remove duplicates and shows single entry of value even if there are multiple values exist.
then create simple measure
measure=count(Table[Laon number])
and drag this in table visual.
You will have your loan number along with count.
Thanks & regards,
Pravin Wattamwar
www.linkedin.com/in/pravin-p-wattamwar
If I resolve your problem Mark it as a solution and give kudos.
- amitchandakSuper User
Use a measure like one of the two
measure1 =if(isfilter(table[loan number]),max(table[loan number]),count(table[loan number])) measure2 = if(isfilter(firstnonblank(table[loan number],blank()),max(table[loan number]),count(table[loan number]))You might have try isinscope or hasonevalue in place of isfiltered
Refer:https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/
- AnonymousNot applicable
Thank you for u r replay
i am getting entire table loan number count acutally we want show count of loan number bellow itslef becasue if i count entire column its visble count values only right so clint need to show loan number in column and count in bellow table
Thanks
mahi
- AnonymousNot applicable
could you please give more details about expected output?
You want it in table or card?
if table then i have provided solution.
If card in card you can display only single measure value.
Thanks
Pravin