Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Boa tarde gente
eu preciso fazer essa função no Qlikview, e trazer da forma abaixo,porém não tem essas funções la.
Alguem consegue me ajudar como trazer de forma similar.
Por exemplo, ao escolher a faixa 30, ele deve apresentar de R$ 0,00 - R$ 29,99
e no qlikview só consigo mostrar dessa forma
ou no máximo assim
Para um relatório em PHP consigo calcular desta forma e apresentar assim
FLOOR(ABS(VLR_BASE_CALCULO)/@FAIXA) * @FAIXA AS VLR_FAIXA_INI,
CASE WHEN (FLOOR(ABS(VLR_BASE_CALCULO)/@FAIXA) * @FAIXA) = (CEILING(ABS(VLR_BASE_CALCULO)/@FAIXA) * @FAIXA)
THEN
((CEILING(ABS(VLR_BASE_CALCULO)/@FAIXA) * @FAIXA) + @FAIXA) - 0.01
ELSE
(CEILING(ABS(VLR_BASE_CALCULO)/@FAIXA) * @FAIXA) - 0.01
END AS VLR_FAIXA_FIM
Boa tarde carla,
one solution for this question could be:
Dual(Num(SubField(Class(value,30),' <= x < ',1),'R$ #.##0,00')&' - '&Num(SubField(Class(value,30),' <= x < ',2)-0.01,'R$ #.##0,00'),Class(value,30))
Due to the creation of dual values, you even don't have to care about sorting expressions:
LOAD *,
Dual(Num(SubField(Class(value,30),' <= x < ',1),'R$ #.##0,00')&' - '&Num(SubField(Class(value,30),' <= x < ',2)-0.01,'R$ #.##0,00'),Class(value,30)) as class;
LOAD Round(Rand()*1100,0.01) as value
AutoGenerate 200;
hope this helps
regards
Marco
or using dynamic front end expressions:
hope this helps
regards
Marco
Marco
Thank you so much
perfect solution
Carla
Hi,
thanks, you're welcome.
Please close this thread, if there are no further questions.
thanks
regards
Marco