Is there a way to dynamically set the fields that a dataset is grouped by in a GroupBy funtion?
I'm trying to do it with an If() as with limited sucess
If(
cbGroupClient.Value = false && cbGroupMonth.Value = true
,GroupBy('Renewable Book Test',"Month","Customer_Group")
,cbGroupClient.Value = true && cbGroupMonth.Value = false
,GroupBy('Renewable Book Test',"Customer","Customer_Group")
,cbGroupClient.Value = true && cbGroupMonth.Value = true
,GroupBy('Renewable Book Test',"Month", "Customer" ,"Customer_Group")