Forum Discussion
Multiple Selection to put into different formula
- 8 years ago
Hi AlbisLoke,
PBI can’t recognize which item is the first selected item in a slicer. As a workaround, if you want to sum up Data[Price] only based on rows in filter, you can simply use DAX formula:
Many = CALCULATE(SUM(Data[Price]), FILTER(Data, Data[Brand] = “AFFLIGEM”)) + CALCULATE(SUM(Data[Price]), FILTER(Data, Data[Brand] = “ANCHOR SD”))
if you want to sum up Data[Price] based on all of the selected item in slicer. you can use DAX formula below:
Many = IF(ISFILTERED(Brand[Brand1]), CALCULATE(SUM(Data[Price]), ALLSELECTED(Brand[Brand1])), BLANK())
PBIX file here:
https://www.dropbox.com/s/ntc2fr33rs8i2lt/For%20AlbisLoke.pbix?dl=0
Regards,
Jimmy Tao
Hi AlbisLoke,
PBI can’t recognize which item is the first selected item in a slicer. As a workaround, if you want to sum up Data[Price] only based on rows in filter, you can simply use DAX formula:
Many = CALCULATE(SUM(Data[Price]), FILTER(Data, Data[Brand] = “AFFLIGEM”)) + CALCULATE(SUM(Data[Price]), FILTER(Data, Data[Brand] = “ANCHOR SD”))
if you want to sum up Data[Price] based on all of the selected item in slicer. you can use DAX formula below:
Many = IF(ISFILTERED(Brand[Brand1]), CALCULATE(SUM(Data[Price]), ALLSELECTED(Brand[Brand1])), BLANK())
PBIX file here:
https://www.dropbox.com/s/ntc2fr33rs8i2lt/For%20AlbisLoke.pbix?dl=0
Regards,
Jimmy Tao