Forum Discussion
Calculate difference % with all values
- 4 years ago
Hi jereaallikko ,
Just as tamerj1 said, you need create a new table with all IDs and don’t create any relationship between these two tables. Then, take the ID column in the new table to create a Slicer.
But after that, you need create a Measure like this.
Difference = VAR SelectedID = SELECTEDVALUE ( 'NewTable'[ID] ) VAR SelectedNumber = CALCULATE ( MAX ( 'Table'[Number] ), 'Table'[ID] = SelectedID ) RETURN DIVIDE ( MAX ( 'Table'[Number] ) - SelectedNumber, SelectedNumber )Then the result will look like this.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let me know. Thanks a lot!
Best Regards,
Community Support Team _ Caiyun
Hi jereaallikko ,
Just as tamerj1 said, you need create a new table with all IDs and don’t create any relationship between these two tables. Then, take the ID column in the new table to create a Slicer.
But after that, you need create a Measure like this.
Difference =
VAR SelectedID =
SELECTEDVALUE ( 'NewTable'[ID] )
VAR SelectedNumber =
CALCULATE ( MAX ( 'Table'[Number] ), 'Table'[ID] = SelectedID )
RETURN
DIVIDE ( MAX ( 'Table'[Number] ) - SelectedNumber, SelectedNumber )
Then the result will look like this.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let me know. Thanks a lot!
Best Regards,
Community Support Team _ Caiyun