Forum Discussion
My expression return wrong value ( This expression is working fine in Sales Table )
- Anonymous5 years ago
Hi admin11 ,
Here are the steps you can follow:
1. Create measure
Measure 4 = IF( CONTAINSSTRING([Vari_%_NP yang_liu],"- ve%"),1,0)2. Select [Vari_%_NP yang_liu], select Conditional formatting – Background color
3. Enter the Background color interface, select Format by-Rules, Based on field-Measure4, set the conditions
4. Result.
You can downloaded PBIX file from here.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi admin11 ,
I can't download your pbix file, you can try this formula:
Var _1=if(
isblank(
divide([_YTD_NP_SGD]-[_LYTD_NP_SGD],[_LYTD_NP_SGD]))
,1,
divide([_YTD_NP_SGD]-[_LYTD_NP_SGD],[_LYTD_NP_SGD]))
return
if(
[_LYTD_NP_SGD] <0 &&[_YTD_NP_SGD]>0,ABS(_1),_1
)
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Thank you very much for your sharing.
When i try your code. I get error below :-
My PBI file :-
https://www.dropbox.com/s/li8ldej4v2t6t8z/PBT_V2021_392%20TI_SI_GL%20copmute%20vari%20np.pbix?dl=0
Paul