Forum Discussion
Switch measure using parameter in SUM formulas
- Anonymous1 year ago
Hi mogugu_84 ,
As far as I know, if you want to use Field parameter function, you need to add all measures you need in it instead of only add the column.
For example, you need create two measures [LYTD Retail Cash] and [LYTD Retail Units] for LYTD Retails, and the same for others like YTD Retail and FYTD Growth Retail.
I suggest you to add a calculated column in this parameter table.
Choose measure = IF(CONTAINSSTRING(Parameter[Parameter],"Cash"),"Retail Cash","Retail Units")Then use this column to create a slicer. Result is as below.
Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi mogugu_84 ,
As far as I know, if you want to use Field parameter function, you need to add all measures you need in it instead of only add the column.
For example, you need create two measures [LYTD Retail Cash] and [LYTD Retail Units] for LYTD Retails, and the same for others like YTD Retail and FYTD Growth Retail.
I suggest you to add a calculated column in this parameter table.
Choose measure = IF(CONTAINSSTRING(Parameter[Parameter],"Cash"),"Retail Cash","Retail Units")
Then use this column to create a slicer. Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.