Forum Discussion
Anonymous
6 years agoNot applicable
powerbi desktop
Anonymous
6 years agoNot applicable
I have also replaced the country of A(india ) to A(USA) on 06/01/19
Anonymous
6 years agoNot applicable
Net variance is coming wrong by selecting groups in slicer
- v-alq-msft6 years ago
Community Support
Hi, Anonymous
You may try the following measure to see if it works.
Actual varaince = var _comparetab = CALCULATETABLE( DISTINCT('Table'[Dimension]), FILTER( ALLSELECTED('Table'), 'Table'[Date]=SELECTEDVALUE('Compare Date'[Date]) ) ) var _basetab = CALCULATETABLE( DISTINCT('Table'[Dimension]), FILTER( ALLSELECTED('Table'), 'Table'[Date]=SELECTEDVALUE('Base Date'[Date]) ) ) var _result = COUNTROWS( FILTER( _basetab, NOT([Dimension] in _comparetab) ) ) return IF( HASONEVALUE('Base Date'[Date])&&HASONEVALUE('Compare Date'[Date]), IF( ISBLANK(_result), 0, _result ) )Best Regards
Allan
- Anonymous6 years agoNot applicable
Hi,
Thanks for your help but its not working while comparing 1/1/19 and 6/1/19 its giving different value when selecting india and usa as countries