Forum Discussion
How to reduce values using dax
Hi all,
I have a requirement, I want to reduce these big values using Dax, i am trying to the clicks rATE AND Variation for clicks(red marked), I want to reduce Variation(marked) to small expected output is down and i am attaching the Dax which i wrote it for creating Variation KPI
Expected Output
(-1.317)
please help to find solution
HI AlanP514 ,
Test like the below:
test = format(MAX('Table'[index]),".000")Output result:
Adjust your dax to :
_Unique clicks rate KPI = VAR _VariationPrecentage = [Unique Clicks rate variation %] VAR _Variation = format([Unique Clicks rate variation],".000" ) Return COMBINEVALUES ( " ", IF ( _VariationPrecentage > 0, [_UpArrow] , [_DownArrow] ), FORMAT ( _VariationPrecentage, [_Percentage Format] ), " (", _Variation, ")" )Refer:
https://learn.microsoft.com/en-us/dax/format-function-dax
Best Regards
Lucien
5 Replies
- lbendlinSuper User
where does the -1013 value come from?
- lbendlinSuper User
Please provide sanitized sample data that fully covers your issue.
Please show the expected outcome based on the sample data you provided.
- v-luwang-msftCommunity Support
HI AlanP514 ,
Test like the below:
test = format(MAX('Table'[index]),".000")Output result:
Adjust your dax to :
_Unique clicks rate KPI = VAR _VariationPrecentage = [Unique Clicks rate variation %] VAR _Variation = format([Unique Clicks rate variation],".000" ) Return COMBINEVALUES ( " ", IF ( _VariationPrecentage > 0, [_UpArrow] , [_DownArrow] ), FORMAT ( _VariationPrecentage, [_Percentage Format] ), " (", _Variation, ")" )Refer:
https://learn.microsoft.com/en-us/dax/format-function-dax
Best Regards
Lucien