Forum Discussion
arlequin71
3 years agoHelper II
Percentage Difference by selecting reference from slicer
Hi, appreciate if anyone can help me on this. I'm using a quick meassure "Percentage difference from filtered value" for displaying a visual like attached one. It works as expected but i require t...
- 3 years ago
Hi arlequin71
You need to add an independent Product table to the model. This means there is no relationship between Product table and Table1. Use Product table's product name column in the slicer.
Then modify the measure into below
Avg Price % difference from selected product = VAR __SELECTED_PRODUCT = VALUES('Product'[Product Name]) VAR __BASELINE_VALUE = CALCULATE([Avg Price], 'Table1'[Product Name] IN __SELECTED_PRODUCT) VAR __MEASURE_VALUE = [Avg Price] RETURN IF( NOT ISBLANK(__MEASURE_VALUE), DIVIDE(__MEASURE_VALUE - __BASELINE_VALUE, __BASELINE_VALUE) )Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
arlequin71
3 years agoHelper II
Excelent! Thanks so much v-jingzhang