Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Gurus,
I have created the below expression and its works as expected:
sum(aggr(sum(aggr(Count(distinct[Emp]),[Date],[Dep],[Com])),[We]))/
count(total<[We]>distinct[Date])
I get the value 1278,000,0
but i need this value to be 1278
How can I get this please.
Many Thanks,
Kumar
Hello,
Can you please share with us a screenshot of how it looks like on your side? It will allow us to understand where exactly this value is presented and how else can we proceed further. My current hypothesis is that additional formatting is applied on the response.
For example:
Try expanding the measure and check the con figuration there:
For example on my side, it is set to auto and thus the number is "1278". If I set it to custom then my number changes to "1,278.00". So on your side most probably this is what causing the number to appear as it does, regardless of the formatting you pass in the expression.
Hello,
Have you tried wrapping it into Num() function? Like Num(EXPRESSION) ?
For example:
=Num(sum(aggr(sum(aggr(Count(distinct[Emp]),[Date],[Dep],[Com])),[We]))/
count(total<[We]>distinct[Date]))
On my side the output is:
NOTE: You can also take a look at the official documentation page [1], where it shows how to use custom formatting with the function, to choose how the output number will look like.
---
I hope that this information was helpful. In case I have misunderstood the use case scenario, please elaborate in details by providing additional information. However, if it has helped you resolve the issue, addressed your concerns or at least pointed you in the right direction, please mark it as Accepted Solution to give further visibility to other community members.
Hi Andrei,
I tried Num at my end and it still show the same value 1278,000,0
I used this:
=Num(sum(aggr(sum(aggr(Count(distinct[Emp]),[Date],[Dep],[Com])),[We]))/
count(total<[We]>distinct[Date]))
Thanks,
Kumar
Hello,
Can you please share with us a screenshot of how it looks like on your side? It will allow us to understand where exactly this value is presented and how else can we proceed further. My current hypothesis is that additional formatting is applied on the response.
For example:
Try expanding the measure and check the con figuration there:
For example on my side, it is set to auto and thus the number is "1278". If I set it to custom then my number changes to "1,278.00". So on your side most probably this is what causing the number to appear as it does, regardless of the formatting you pass in the expression.
Hi Andrei,
Apologies ! its my bad I have selected Number at my end and once I changed to Auto it showing the correct value 1278.
Many Thanks,
Kumar
Olá, @pjpkumar26
Você pode tentar usar essa expressão
if(soma(aggr(soma(aggr(Count(distinct[Emp]),[Data],[Dep],[Com])),[We]))
/
count(total<[Nós]>distinto[ Dados] ) >1E6,
num( soma(aggr(soma(aggr(Contagem(distinta[Emp]),[Data],[Dep],[Com])),[We]))
/
count(total<[ Nós]>distinto[Data]) )/1E6,'#,00 M')
Resultado:
Caso tenha ajudado a marcar como solução e deixe um like
Grato!
Olá, @pjpkumar26
if(soma(aggr(soma(aggr(Count(distinct[Emp]),[Data],[Dep],[Com])),[We]))
/
count(total<[Nós]>distinto[ Dados] ) >1E6,
num( soma(aggr(soma(aggr(Contagem(distinta[Emp]),[Data],[Dep],[Com])),[We]))
/
count(total<[ Nós]>distinto[Data]) )/1E6,'#,00 M')
Caso tenha ajudado a marcar como solução e deixe um like
Grato!
I get this when i use the above syntax - can't see the value
Regards
Olá, @pjpkumar26
Veja a a essa sintaxe
if(
sum(aggr(sum(aggr(Count(distinct[Emp]),[Data],[Dep],[Com])),[We]))
/
count(total<[Nós]>distinct[ Dados] )>1E6,
num(sum(aggr(sum(aggr(count(distinct[Emp]),[Data],[Dep],[Com])),[We]))
/
count(total<[ Nós]>distinct[Data])/1E6,'#,000 M')
)
Aqui utilizei um teste e está funcionando bem.